This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes declerations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "declerations" Watch "declerations" New topic
Author

declerations

anushree ari
Ranch Hand

Joined: Sep 30, 2002
Posts: 98
Is it valid?
package declaration; �
//commnts
import statements;
class definition;
comments can appear anywhere,
correct me,
thx


anushree
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Comments have (almost) no impact on the code since they are not taken into consideration by the compiler.
Otherwise the layout (package, import, class) is correct.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
anushree ari
Ranch Hand

Joined: Sep 30, 2002
Posts: 98
thx valentine,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: declerations