Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiler flag

 
Sathya Shanmugam
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like to know what is a compiler flag in java
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javac flags are codes for specifying compilation options. For example, if you type...

javac -verbose MyFile.java

Then the -verbose flag tells the compiler to output messages while compiling (e.g., what classes it's loading).

A basic list of options is displayed by typing javac -help...

For more detail, see javac - Java programming language compiler.

(Note that there are also flags for Java runtime. For example, the -ea flag enables assertions. Type java -help for a basic list.)
 
ravindra patil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends
I am also planning give SCJP 1.5 by next month,please suggest me ways of preparation.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rose,

Welcome to JavaRanch!

You might want to check our SCJP FAQs. Also, to start a new topic, click on "Post New Topic" instead of "Post Reply."
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rose / ravindra,

I see you just changed your display name. The JavaRanch Naming Policy requires a first and last name (separated by a space), so could you please change it again to add that space? Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic