Low-level language is the computer is easy to understand and people are not easy to understand, such as assembly language. In contrast, high-level languages are easy to understand and close to natural language. , such as the current popular javac,c++,pascal,python,lisp,prolog,foxpro,delphi and so on. , both languages are machine-oriented languages and are closely related to the instruction system of specific machines. The machine language is programmed with the instruction code, while the symbol language uses the instruction mnemonic to write the program.
Java is the representative of the object-oriented language and belongs to the high-level computer language.
High-level computer languages can be executed in two ways, by program:
1) Compile: One-time code compiled into machine code, can be run independently from the development environment, and high efficiency. C,C++,OBJECTIVE-C, etc. are compiled languages.
If you want to migrate this language, you need to compile the source code on a specific platform.
2) Explanatory: Use a dedicated interpreter for the source program to interpret the source code on a per-line basis into a specific platform's machine codes and execute the language immediately. It can be argued that an interpreted language needs to be compiled each time it is run.
"Cons" therefore, this type of language is inefficient and cannot be run independently from the interpreter.
The pros are easy to cross-platform, and we just need to provide a platform-specific interpreter. We only need to provide an interpreter on a specific platform for porting it. But it also comes at the expense of procedural efficiency.
The Java language is a high-level language, but also a special high-level language, his operation requires two steps, one is compiled, and one is explained. Generally compiled high-level languages are generated by specific machine code, but Java generates a. class file that can only be executed by a Java interpreter.
Java is the Java Virtual machine that is responsible for interpreting the Java language's bytecode files. Jvm.
The JVM is an abstract computer, the same as the actual computer, which has instruction sets and uses different storage areas. It is responsible for executing instructions, as well as managing data, memory, and registers.
On the running mechanism of Java program