On the running mechanism of Java program

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.