Java belong compiled or interpreted language?

The computer can not directly understand high-level language, language can only be understood and operation of the machine. We must take high-level language into machine language, computer to run programs written in high-level language.
There are two ways of translation, a compiler, one explanation.

Before a compiled language used to write the program execution, requires a special compilation process, through the build system to translate high-level language into machine language, the senior program source file compiled into machine language, directly after the operation without the need for recompilation, so the general high efficiency of program execution of compiled languages.

Interpreted languages ​​at run only interpreted into machine language, if each statement is executed translation. Each time a translation is necessary, less efficient.

 

Java is a characteristic of both compiled and interpreted languages, .java files are compiled into .class file platform-independent, but .class bytecode files can not be directly computer, JVM still needs to be translated into machine language.
So strictly speaking, Java is an interpreted language.


 


 

All resources resources are summarized in the public No.


 

 

Guess you like

Origin www.cnblogs.com/ConstXiong/p/11878744.html