Search code examples
java.netcompiler-constructionvirtual-machinecomputer-science

What is the difference beetwen bytecode and object code?


I was read book algorithm for compiler design (2003), there is another variant compiler called cross-compiler that produce object code for multiple machine, but In another book i was read that there is exist code called bytecode that produced for multiple machine too but its executed via JIT compiler on virtual machine. java on JVM and .Net on CLR.

is object code and byte code are same? or different?


Solution

  • Byte Code is the Object Code of the JVM . They are the same is the answer to your question. They are the same in the sense that Byte Code is an object code. But, an object code isn't necessarly byte code. There are more explanations within the link below as this is a repeat question

    (Edited)Oh and Apparently this is a repeat question:

    Does Java produce object code or byte code?