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)

jre jvm jdk_Java JVM,JDK和JRE

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和应用程序的工具和实用程序,例如编译器或调试器。

jre jvm jdk_Java JVM,JDK和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和应用程序所需的工具,例如编译器和调试器。

jre jvm jdk_Java JVM,JDK和JRE



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

jre jvm jdk