Java development It is done in 3 steps: (1) source code creation, (2) compilation, and (3) execution. I will follow each step in detail.
Write instructions to the computer according to the grammar defined by Java.
public class Lesson {
public static void main(String[] args) {
}
}
A program that can be read by humans is called a source code.
② Compile The computer works as instructed by the CPU interpreting the programming. However, the CPU cannot directly read the source code written by a person and run it. It needs to be converted into a program called a machine language so that it can be interpreted by the CPU. The process of converting is compilation. By compiling, it is converted to a state called bytecode. During this process, the source code is also checked, and if there is an error, the compilation will fail and the error will be displayed. This process is performed by conversion software called a compiler.
③ Execution When the compilation is completed successfully, the software called the interpreter is instructed to execute the bytecode. The interpreter has a mechanism called JVM (Java Virtual Machine) inside, and while reading the bytecode, it converts it to the machine language and sends it to the CPU. This causes the computer to operate as instructed by the source code.
"Introduction to Java for a refreshing look] Second Edition Author: Kiyotaka Nakayama and Daigo Kunimoto Publisher: Impress Corporation
Please refer to the link below for the procedure of development with eclipse https://www.javadrive.jp/eclipse3/step/
Recommended Posts