JVM is the abbreviation of Java Virtual Machine (Java Virtual Machine). JVM is a specification for computing devices. It is a fictitious computer that is run on an actual computer. It is realized by simulating various computer functions.
(Recommended tutorial: java learning website)
Popular understanding:
JVM is essentially a program that can recognize .class bytecode file (which stores the binary code generated after we compile .java), and can parse its instructions, and finally call the functions on the operating system to complete the operation we want!
Regarding the cross-platform nature of the Java language, it is because of the JVM. We can imagine it as an abstraction layer. As long as this abstraction layer JVM correctly executes the .class file, it can run on various operating systems. Got it! This is compile once and run many times.
(Video tutorial recommendation: java learning)
JVM location:
JVM runs on the operating system and has nothing to do with the hardware. direct interaction.
The above is the detailed content of What is JVM? Where is it?. For more information, please follow other related articles on the PHP Chinese website!