Some people say that Java is a compiled type. Because all Java code is to be compiled, the. Java cannot be executed without compiling. Some people say that Java is an explanatory type. Because Java code cannot be run directly after compilation, it is interpreted as running on the JVM, so it is interpreted. For C and C + +, once compiled, they can be executed directly by the operating system, so they are compiled languages. Instead of Java, it is first compiled by the compiler into a. Class (bytecode) file, and then a line is interpreted from a. class file through the JVM, so it is interpreted as a language. It is also because Java has different JVMs for many different operating systems, so it realizes a true cross-platform.
(1) The Java language is compiled--and explained--The running process
(2) The JVM is here and everyone should understand it. Finally, the definition of compiled and interpreted languages is given. Definition: Compiled language: A running program that compiles all the good source programs into binary code. Then, you can run the program directly. Interpreted language: Translate a good source program into one sentence, then execute one sentence until the end! Features: Compiled language, fast execution speed, high efficiency, relying on compiler, cross-platform poor. Interpreted language, slow execution, low efficiency, rely on the interpreter, cross-platform good.
Examples: compiler-based languages include: C, C + +, Delphi, Pascal, Fortran
Interpreted languages include: Java, Basic, JavaScript.
Whether Java is a compiled or interpreted language/