Does Java produce object code or byte code?

前端 未结 5 2057
南笙
南笙 2020-12-19 07:04

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

5条回答
  •  梦毁少年i
    2020-12-19 08:05

    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.

提交回复
热议问题