Take code as an example
public class HelloWorld {public static void main (string[] args) {System.out.println ("HelloWorld"); }}
after compiling, we get the Helloworld.class
then let the virtual machine perform this HelloWorld.
1. Virtual opportunity to find Helloworld.class in Classpath.
2. The interpreter in the virtual machine interprets the helloworld.class as a byte-code.
3. Send the interpreted bytecode to execution engin for execution.
4. Execution Engin calls native method to print out the specified string in the specified part of the stdout (display) of the host system.
5. In this way, we will see the words "HelloWorld".
a few terms in Java:
A. Jdk:java Develop kit JavaDevelopment Tools(JAVA API package)
B. sdk:software Develop kit softwareDevelopment Tools
c. JRE. Java Runtime Environment Java Run environment, JRE is actually JDK + JVM
d. JVM java Virtual machine java VM
This article is from the "Yehomlab" blog, make sure to keep this source http://yehom.blog.51cto.com/5159116/1772582
The operating mechanism of "DAY1" Java