jre jvm jdk_Java JVM,JDK和JRE

jre jvm jdk

Java JVM,JDK和JRE (Java JVM, JDK and JRE)

In this tutorial we will cover what Java Virtual Machine is, and what is JRE and JDK.

在本教程中,我們將介紹什麼是Java虛擬機,什麼是JRE和JDK。

Java virtual Machine(JVM) is a virtual Machine that provides runtime environment to execute java byte code. The JVM doesn't understand Java typo, that's why you compile your *.java files to obtain *.class files that contain the bytecodes understandable by the JVM.

Java虛擬機(JVM)是​​提供運行時環境以執行Java字節碼的虛擬機。 JVM無法理解Java拼寫錯誤,因此,您編譯*.java文件以獲得*.class文件,其中包含JVM可以理解的字節碼。

JVM control execution of every Java program. It enables features such as automated exception handling, Garbage-collected heap.

JVM控制每個Java程序的執行。 它啓用了自動異常處理,垃圾收集堆等功能。

JVM架構 (JVM Architecture)

JVM architecture in Java

Class Loader : Class loader loads the Class for execution.

類加載器:類加載器加載要執行的類。

Method area : Stores pre-class structure as constant pool.

方法區域:將前置結構存儲爲常量池。

Heap : Heap is a memory area in which objects are allocated.

堆:堆是在其中分配對象的內存區域。

Stack : Local variables and partial results are store here. Each thread has a private JVM stack created when the thread is created.

堆棧:局部變量和部分結果存儲在此處。 創建線程時,每個線程都有一個專用的JVM堆棧。

Program register : Program register holds the address of JVM instruction currently being executed.

程序寄存器:程序寄存器保存當前正在執行的JVM指令的地址。

Native method stack : It contains all native used in application.

本機方法堆棧:它包含應用程序中使用的所有本機。

Executive Engine : Execution engine controls the execute of instructions contained in the methods of the classes.

執行引擎:執行引擎控制類方法中包含的指令的執行。

Native Method Interface : Native method interface gives an interface between java code and native code during execution.

本機方法接口:本機方法接口在執行期間在Java代碼和本機代碼之間提供接口。

Native Method Libraries : Native Libraries consist of files required for the execution of native code.

本機方法庫:本機庫由執行本機代碼所需的文件組成。

JDK和JRE之間的區別 (Difference between JDK and JRE)

JRE : The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. JRE does not contain tools and utilities such as compilers or debuggers for developing applets and applications.

JRE :Java運行時環境(JRE)提供了庫,Java虛擬機和其他組件,以運行用Java編程語言編寫的小程序和應用程序。 JRE不包含用於開發applet和應用程序的工具和實用程序,例如編譯器或調試器。

What is JRE



JDK : The JDK also called Java Development Kit is a superset of the JRE, and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications.

JDK :JDK也稱爲Java Development Kit,它是JRE的超集,包含JRE中的所有內容,以及開發applet和應用程序所需的工具,例如編譯器和調試器。

What is JDK



翻譯自: https://www.studytonight.com/java/component-of-java.php

jre jvm jdk