In-depth introduction to JVM (1)-two environments

Source: Internet
Author: User

If you really want to master the Java technology, first remember its four components: Java language, class file format, JVM and Java API.

If you have learned Java, you already know that Java has two environments: the compiling environment and the running environment. Well, we will discuss them separately.

1) compiling environment

What is the compiling environment? If JDK is installed, everything in your D:/j2sdk1.4.2 directory is your Java compiling environment.

The workflow for compiling the environment is as follows: You use Java language specifications or Java APIs to write (or automatically generate) A. Java file. Then,
Compile the javac.exe file in the environment using Java. Finally, you get a file in "class file format.

Here, you should have understood that the compiling environment is not the same as the development environment, because your. Java file may be dynamically generated at runtime.
.

2) running environment
What is the runtime environment? Your C:/program files/Java/j2re1.4.2 directory is your Java Runtime Environment.

The Java Runtime Environment is the Java platform.

The Java platform consists of JVM and Java APIs.

JVM consists of a class loader and a JVM running engine.

Let's look at the four major components of Java technology: you learn the Java language and Java API specifications and write compliantCode; Compile it with the compiling environment,
At the same time, determine whether it complies with the specifications. If yes, obtain the files in the class file format. Then, the JVM Class Loader loads these files and sends them to the JVM runtime reference.
Consumer, the engine starts consumption.

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.