有什么区别&QUOT的区别;建筑中性"和"便携式"? [英] What is the difference between "architecture-neutral" and "portable"?

查看:180
本文介绍了有什么区别&QUOT的区别;建筑中性"和"便携式"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在读赫伯特Schildt的书的Java:完整参考,并在那里,他写道,Java是便携式和体系结构中立的。是什么这两个概念之间的区别?我无法从文字理解它。

I'm reading Herbert Schildt's book "Java: The Complete Reference" and there he writes that Java is portable AND architecture-neutral. What is the difference between this two concepts? I couldn't understand it from the text.

推荐答案

看看这个的白皮书的Java

他们基本上是说,除了在多个环境中运行(因为是在JVM中PTED间$ P $),它也运行相同的,不管环境。前者是什么使得它便于携带,后者是什么使得它的体系结构中立的。例如,int的大小不会变化基于平台;它是由JVM建立的。

Basically they're saying that in addition to running on multiple environments (because of being interpreted within the JVM), it also runs the same regardless of environment. The former is what makes it portable, the latter is what makes it architecture-neutral. For example, the size of an int does not vary based on platform; it's established by the JVM.

这篇关于有什么区别&QUOT的区别;建筑中性"和"便携式"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆