About Java running mechanism
The difference between compiled language and interpreted language
Compiled language
What is compilation? By searching for information, it is probably to use a special compiler to "translate" the high-level language source code into the machine code that can be executed by the platform and its execution, and package it into the format of executable program that can be recognized by the platform. PS: of course, the computer can only not understand the code we type.
Interpretive language
Interpretation is to interpret the source program into the machine code required by the platform through a special interpreter and execute it immediately, that is, before each execution, it needs to be explained again.
Count the difference between the two
The oddity of Java
Java compilation
Java compilation does not generate platform specific machine code, but platform independent bytecode, that is Class file.
Explanation of Java
. The class file can only be executed by translating the Java virtual machine (JVM) into local machine code. This is the process of interpretation.