使用32位Java编译器生成的.class文件可以在具有64位JVM的64位系统上使用吗? [英] Can a .class file generated using a 32 bit java compiler be used on a 64 bit system with 64 bit JVM?
本文介绍了使用32位Java编译器生成的.class文件可以在具有64位JVM的64位系统上使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用32位Java编译器生成的.class文件可以在具有64位JVM的64位系统上使用吗?
Can a .class file generated using a 32 bit java compiler be used on a 64 bit system with 64 bit JVM?
推荐答案
是. Java字节码独立于32/64/...位系统.
Yes. Java byte code is independent from 32/64/... bit systems.
这是主要目的:编译后的代码应在任何系统上可执行,只是虚拟机针对特殊的系统体系结构进行了编译.
That's the main purpose: the compiled code shall be executable on any system, just the virtual machine is compiled for a special system architecture.
这篇关于使用32位Java编译器生成的.class文件可以在具有64位JVM的64位系统上使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文