Java program operating mechanism: compilation and interpretation

Java's operating mechanism:
compilation + interpretation

Compiler:
Translate a book
Compiler
Fast execution speed
C/C++

Interpretation type: the
translator explains
JS, Python and
Java sentence by sentence , which is closer to the interpretation type

Program operation mechanism:
Insert picture description here
.java file, enter the compiler, pre-compile, generate .class file, jvm loads the class into the class loader, then code inspection, the last sentence is explained to the OS

Guess you like

Origin blog.csdn.net/weixin_40816843/article/details/113603077