Java compiler/interpreter

后端 未结 6 2066
野性不改
野性不改 2021-01-30 03:43

Why we do we say that Java is a compiled and interpreted language?

What is the advantage of this (being compiled and interpreted)?

6条回答
  •  猫巷女王i
    2021-01-30 03:58

    Java is compiled, into byte code not binaries. The byte codes are not executable directly, they need the Java Virtual Machine to do a just in time compile and compile them again into machine code at runtime.

    At a very basic level, it separate the code that programmers write from the local machine where the JVM operates on, hence better portability. While compiling to bytecode helps the performance of just in time compile, reduce file sizes, and more or less help conceal real code. (it also eliminates some compile time error)

提交回复
热议问题