• Post Reply Bookmark Topic Watch Topic
  • New Topic

public static final in package  RSS feed

 
chennai Kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi team,

Could you please tell me your understanding and on below lines.



This above line does not throw any error/exception, kindly explain what it really means.

Regards,
RAM chennai
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is not valid Java. You will get a compile error when you try to compile this.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chennai Kumar wrote:


This above line does not throw any error/exception, ..

Hard to believe. you should get a compile error for Public
Please PostRealCode including the full class. Just one line does not make sense
 
chennai Kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Team,

Please find below example,


 
Tim Cooke
Marshal
Posts: 4039
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of course does not compile, as previously stated.
 
Paweł Baczyński
Bartender
Posts: 2077
44
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting:
 
Mike Simmons
Ranch Hand
Posts: 3090
14
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm... do you know how to compile and run a Java program? Because so far, it really doesn't look like you have done that. You haven't actually seen this print "welcome", have you? That's because it can't possibly compile or run.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!