Save, Compile and Execute a Java Programming
After creating a Java programming, the Java source code has to be saved withan extention .java e.g. HelloWorld.java.It is important that the filename and the classname must be the same.All compilers impose case sensitive in Java.
2 steps to perform before viewing the program output:
The source code written must be compiled into bytecodeThe java interpreter will then translate the bytecode into executablestatements.
How to compile a Java application
To compile HelloWorld.javado: javac HelloWorld.javaTo run the applicationdo: java HelloWorld