本文介绍了Java是否产生目标代码或字节代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
据我了解,Java编译器生成的是字节代码",而不是目标代码".首先,这是正确的吗?
It's my understanding that the Java compiler produces "byte code", not "object code". First of all, is this correct?
这也是我的书所说的,我想知道为什么这是正确的.字节码和目标码有什么区别?
Also, that's just what my book says, I was wondering why this is correct. What is the difference between byte code and object code?
推荐答案
字节代码只是Java虚拟机的目标代码".不是 native 代码(例如x86).老实说,这些天我很少听到目标代码"一词-用更具体的术语讲通常更清晰.
Byte code is just the "object code" for the Java Virtual Machine. It's not native code (e.g. x86). To be honest, I rarely hear the term "object code" these days - it's generally clearer to talk in more specific terms.
这篇关于Java是否产生目标代码或字节代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!