Whether Java is a compiled or interpreted language/

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.