How to Run Java Application

Now that your  Java file is compiled we can execute the application using the “java” command as below.
Without Package
With Package

Note*: The “java” command uses the class file name without its extension(.class).
With this we are done creating and running our very first Java application.
In the next section we will learn the difference between JDK and JRE.

Next Post »