Comparison and Learning Record of Java and C # (3)

Source: Internet
Author: User
Tags dotnet

1) Basic Architecture
The basic architecture of the two is similar, Java: JavaProgram-> Java bytecode-> JVM (JIT ). DOTNET: C # Program-> pencil (Common intermediate language)-> CLR (JIT ). at the beginning, Java bytecode was interpreted and executed, but now the real-time compilation technology is used. C #, as a latecomer, used this technology from the very beginning. the execution architecture of the software is basically the same;
2) platform independence:
The design goals of Java and DOTNET are platform-independent, but Microsoft's operating system is the main profit source. NET platform independence is still greatly reduced. however, it is hard to tell the following about Java. After all, some things will change after it is acquired by Oracle.
3) unified development languages:
In this regard, the Java design did not include this goal, and DOTNET was committed to the unification of development languages from the very beginning, but this is not the difference between Java and C # As languages, but the difference between the two systems. this advantage of DOTNET is attractive to programmers, at least reducing learning costs. on the other hand, the learning cost of mutual conversion between Java and C # is not very high.

4) Basic data types: Java has fewer predefined basic types and C # many, but this does not affect normal use. of course, since C # is based on.. NET Framework, whose types are also common data types. because both are designed for cross-platform, the Data Type length is not the actual memory size. the actual memory usage depends on the Virtual Machine (JVM, CLR) and the specific machine type (CPU length ). for example, if the byte is 8 bits and the machine is 32 bits, you can implement the byte as 8 bits, and the efficiency will be lower (32 bits each time, then, byte is calculated ).

 

This period of time is busy. update it here first and continue later.

Related Article

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.