Compile and Run Program

Java source file can be compiled using the Java compiler tool javac which is part of the  JDK.
1. Save the file (.java is extension of  java source file)

2. Compile the file


javac compile it into a new class file(with a .class extension) containing the Java bytecode for the First class.

3. Run the file

Running the program means telling the Java Virtual Machine(JVM) to “Load the First class, then start executing its main() method. Keep running till all the code in main () is finished”

>java First



Latest Tutorial

Most Visited Tutorial