wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 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,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: declerations