Three steps for running a Java program:
1. Write Java code and change the extension to .java;
2. Use the javac command Compile the java file and generate it into a .class file;
3. Run the generated class file through the java command.
As shown in the picture:
Writing and saving of source program
Compilation of java program
Recommended tutorial: Java tutorial
The above is the detailed content of Three steps for running a java program. For more information, please follow other related articles on the PHP Chinese website!