File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Compiler flag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Compiler flag" Watch "Compiler flag" New topic
Author

Compiler flag

Sathya Shanmugam
Ranch Hand

Joined: Mar 02, 2007
Posts: 45
I like to know what is a compiler flag in java
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

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.)


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
ravindra patil
Greenhorn

Joined: Mar 28, 2007
Posts: 9
Hello Friends
I am also planning give SCJP 1.5 by next month,please suggest me ways of preparation.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

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

Joined: Aug 31, 2004
Posts: 11343

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compiler flag