Documents
Overview:
JVM:
Machine language consists of very simple instructions that can be executed directly by the CPU of a computer.
but Java C++ high-level language cannot be run directly on any computer.
First, it has to be translated into machine language. This translation can be done by a program called a compiler.
Once the translation is done, the machine-language program can be run any number of times
Of course, a different Java bytecode interpreter is needed for each type of computer, but once a computer has a Java bytecode interpreter, it can run any Java bytecode program, and the same program can be run on any computer that has such an interpreter.
Hello World!!!
public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello, World!!");
}
}
OK,