How to Compile a Java file

Following example shows how to compile a java file using javac command.

c:\jdk\demoapp> javac First.java 


Result

The above code sample will produce the following result.

First.java compile successfully.

No comments: