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?
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.
When you compile a java program, it goes to byte-code. When you run the resulting artifact, the JVM of the platform then runs (well, interprets) the bytecode, turning it into machine level instructions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With