Java解释器和JVM之间的区别 [英] Difference between a Java interpreter and JVM
问题描述
我听过有人说JVM必然是Java解释器,但Java解释器不一定是JVM。这是真的吗?
I have heard people saying "a JVM is necessarily a Java interpreter but a Java interpreter is not necessarily a JVM". Is that true?
我的意思是Java解释器和JVM之间有区别吗?
I mean is there a difference between a Java interpreter and JVM?
推荐答案
是的,有区别。
Java虚拟机:
软件执行引擎,可以安全地兼容地执行微处理器上的Java类文件中的字节代码(无论是在计算机中还是在其他电子设备中)。
A software "execution engine" that safely and compatibly executes the byte codes in Java class files on a microprocessor (whether in a computer or in another electronic device).
Java解释器:
一个模块,它交替解码并执行某些代码体中的每个语句。 Java解释器解码并执行Java虚拟机的字节码。
A module that alternately decodes and executes every statement in some body of code. The Java interpreter decodes and executes bytecode for the Java virtual machine.
Java解释器实际上是JVM的一部分。虚拟机不只是执行字节码,还有很多任务要做。这个完整的环境被称为JVM。
The Java interpreter is actually a part of JVM. Virtual machine is not just executing the bytecodes, it has lot of tasks to do. That full-fledged environment is referred to as a JVM.
检查:
这篇关于Java解释器和JVM之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!