当前位置: 技术问答>java相关
什么叫虚拟机呢?他就如何定义了,望大家给于解答,赠分!
来源: 互联网 发布时间:2015-06-27
本文导语: 什么叫虚拟机呢?他就如何定义了,望大家给于解答,赠分! | 虚拟机在JAVA中就是JVM,是用来解释执行JAVA程序的,说得简单点,就是在计算机中模拟一种平台,这种平台可以完成某种特定的...
什么叫虚拟机呢?他就如何定义了,望大家给于解答,赠分!
|
虚拟机在JAVA中就是JVM,是用来解释执行JAVA程序的,说得简单点,就是在计算机中模拟一种平台,这种平台可以完成某种特定的工作,在CASE语言中也有类似的虚拟机。前面有过这样的论题,你可以看一看
|
A self-contained operating environment that behaves as if it is a separate computer. For example, Java applets run in a Java virtual machine (VM) that has no access to the host operating system. This design has two advantages:
System Independence: A Java application will run the same in any Java VM, regardless of the hardware and software underlying the system.
Security: Because the VM has no contact with the operating system, there is little possibility of a Java program damaging other files or applications.
System Independence: A Java application will run the same in any Java VM, regardless of the hardware and software underlying the system.
Security: Because the VM has no contact with the operating system, there is little possibility of a Java program damaging other files or applications.
|
java就是靠虚拟机来实现跨平台的,应用程序都建立在虚拟机上,而虚拟机是一个跨平台的标准,所以只要在不同平台下开发不同平台的虚拟机就可以让java程序跑起来了。
|
玩过模拟器就应该知道的吧,好像也差不多了