Compiling a Java program
In order to compile a Java program, you must save the program by using the name of the class and .java
as the extension.
Then the compiler must be called using the javac
command.
Then the java program is executed using java classname