In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article shows you how JAVA and JVM work respectively. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
How JAVA and JVM work
The source program written in the Java language is compiled into a platform-independent bytecode program (.class file, that is, the 0L1 binary program) through the Java compiler, and then interpreted and executed in the Java interpreter on top of OS, while JVM is the core and foundation of java, the virtual processor between the java compiler and the os platform.
How JAVA and JVM work
The process of running 1.Java language
The source program written in the Java language is compiled into a platform-independent bytecode program (.class file, that is, the 0L1 binary program) through the Java compiler, and then interpreted and executed in the Java interpreter on OS.
It is also quite similar to
Note: JVM (java virtual machine) includes an interpreter. Different JDK virtual machines are the same, but different interpreters are different.
2.JVM:
JVM is the core and foundation of java, a virtual processor between java compiler and os platform. It is a kind of abstract computer implemented by software method based on the lower operating system and hardware platform, on which the bytecode program of java can be executed.
The java compiler only needs to target JVM to generate code or bytecode files that JVM can understand. The Java source file is compiled into a bytecode program, and each instruction is translated into different platform machine code through JVM, which is run on a specific platform.
The process by which JVM executes the program:
i. Load. Class file
ii. Manage and allocate memory
iii. Perform garbage collection
JRE (java Runtime Environment) the running environment of java programs constructed by JVM
What are the above contents? what are the operating principles of JAVA and JVM respectively? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.