Explains the running mechanism of Java and C ++

Source: Internet
Author: User

Java is more suitable than a language. Every class in Java has a class file corresponding to it. When the program starts, Java loads the classes required for running the program to the virtual machine, connection (dynamic connection) is performed according to Java Virtual Machine specifications, and program assembly is completed during running. Therefore, Java programs are very easy to develop components, and program components are very easy to replace.
C is similar to other compiled languages, and its program assembly method is a traditional assembly method. C generates binary code for a certain platform during compilation, finds the library to be called during connection, and then connects the code in these libraries into the executable program, the generated executable program runs very fast, but the executable code has become a whole and cannot be separated. (Without considering dynamic links)
C can also be developed in the form of components, such as COM, but those are based on dynamic link libraries and cannot be cross-platform. COM actually defines a binary component standard. Is not cross-platform.

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.