Due to the need to do the Java project, I would like to record learning Java daily

Source: Internet
Author: User

Before also very shallow contact with Java, so now is also a new learning a language, basic beginning to read, and C # difference is not big (is said to be different companies, a group of people out, want to change is not difficult).

C # and Java Primary knowledge:

1, a lot of system object methods are similar, the same method name, the same role, the case is slightly different;

2,c# has proxies and indexers, Java does not have this concept, the controller layout Java does not know whether the underlying is similar;

3,c# enumeration types are used more, Java projects are slightly rare;

4, for exception handling, C # more convenient (personal feeling), C # does not provide throws keyword

5, inheritance and interface implementations cannot be distinguished by declarations, but are declared the same way.

6,c# can allow unsafe code (using pointers);

When it comes to pointers, some of the differences between C # and C are well sorted out

1,c need to be declared first and must be placed at the top of the method.

2,c# does not support union types.

3, C # does not have bit fields, define variables to occupy at least one byte of space

Follow-up will record some of the Java learning experience. Welcome criticism

Due to the need to do the Java project, I would like to record learning Java daily

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.