How Java's JVM virtual machines work. v.1.0.0

Source: Internet
Author: User
Tags java format

Note: The content is purely personal understanding, if there are errors, please criticize correct.

(90 degrees Bent) Thank you.

Java is running on the JVM:

1, Edit good Java code (IDE without error, test run without errors);

2,java source code through Javac compiled into class file (byte code file, all binary data, is for God to see things);

The 3,class file is loaded onto the JVM and continues to compile two times (or the last time it was not compiled or a format conversion) to format the platform (which is also the source of Java advertising);

4, after the format of the file, it can be run on the corresponding platform (the machine directly read the formatted binary file, that is, byte code, machine code, a meaning).

In short, that is the point above.

My question has the following points:

How does the 1,java IDE's error correction mechanism be performed? Do you want to inherit all the errors that can occur as a single database and then query in the run? How slow that is. So this scheme is negative (if so, I can only hehe).

2,java to the class file process, what is going on, what is class, what is a simple binary? It's said to be a C program (a great God explains that), really?

3,class to JVM:JVM have different versions on different platforms, corresponding to different decoding mechanisms (?). )。 But how does this JVM appear, written in Java or in other languages? Or a compilation?

4, abnormal, error mechanism: The machine can not run, the program has been wrong, the exception thrown, how to throw it? Throw it out like you throw something?

What file is generated when 5,JVM format (I like to call it my own) class file? Where is it stored?

6, all said that Java is running slowly, and that Java can be formatted into C language, or even assembly language (referring to the big God above), then, why not directly to the Java format C or assembly and then publish? So the apes were relaxed, the machines were relaxed, and the world was all peaceful.

7, the question is broad: the difference between JVM platforms, I'm talking about root, not a simple version.

8, waiting to be added ...

Solve the problem:

The problem is to be solved, but not in the mood tonight, there are tasks to do, first of all.

Take a poke: 2015-07-21

Episode:

Actually this topic is not I want to write, is the Zhou gong let me write.

Nasty Zhou Gong, in the dream also not let me, rest easy.

How Java's JVM virtual machines work. v.1.0.0

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.