Home >Java >Javagetting Started >Three steps for running a java program

Three steps for running a java program

王林
王林Original
2019-11-16 16:32:4611837browse

Three steps for running a java program

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:

Three steps for running a java program

Writing and saving of source program

Three steps for running a java program

Three steps for running a java program

Compilation of java program

Three steps for running a 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn