First, what is the JVM
The Chinese name of the VM is called a Java Virtual machine, which is a virtual computer run by software technology that simulates a computer.
The JVM also acts as a translator, and the Java program we write is not directly identifiable by the operating system, and the JVM is responsible for translating our program to "listen" to the system and tell it what we need to do with the program.
We all know that Java programs need to be compiled and generated. class file, the JVM can recognize and run it, the JVM develops its interpreter for each operating system, so as long as its operating system has a corresponding version of the JVM, then this Java compiled code will be able to run, which is why Java can compile and run everywhere.
Ii. Basic concepts of the JVM
The JVM basic structure is as follows
Iii. Introduction to the basic principles of the JVM
The JVM system is generally divided into four blocks:
- The loading mechanism of the class
- JVM Memory Structure
- GC Algorithm garbage Collection
- GC Analysis Command Tuning
Java Advanced article (first, JVM basic concept)