First of all, let’s understandWhat is a program?
A program usually refers to a way of executing something and a description of the process. Every command given by people is called an instruction. The computer completes a series of instructions in a certain order. The set of this series of instructions is called a program.
A program is a set of ordered instructions written to allow the computer to perform certain operations or solve a certain problem.
It is written in some programming languages and runs on some target architecture. For example, a program is like an article written in English (programming language). It needs to be read, understood, and marked by a person who understands English (compiler) and who can also read this article (structure system). article. Generally, computer programs based on English text must be compiled and linked into a digital format that is difficult for humans to interpret but can be easily interpreted by computers, and then put into operation.
What does JAVA program mean?
Simply put: A JAVA program is written in the JAVA language, a set of a series of ordered instructions written to allow the computer to perform certain operations or solve a certain problem. [Recommended learning: java course]
JAVA program development steps
The first step: write the source program
The second step: ( javac.exe) compiler compiles the source program
Step 3: Run the bytecode file (xxx.class)
Compilation: refers to the Java we wrote The source file is translated into a class file recognized by the JVM. During this process, the javac compiler will check whether the program we wrote has any errors. If there are errors, it will prompt it. If there are no errors, the compilation will be successful.
Run: refers to handing the class file to the JVM to run. At this time, the JVM will execute the program we wrote.
The above is the detailed content of What does JAVA program mean?. For more information, please follow other related articles on the PHP Chinese website!