Java learns from 0--string

Source: Internet
Author: User

The strings in the #,java are immutable;

#, compare two strings is not equal, cannot use = =, because that can only confirm whether they point to the same string object; #, empty strings and Null are different; #, code points and code unit #, code points represent a character, may be a code unit representation, or two, Additional characters that exceed the original 16-bit limit may need to be represented by two code units. #, the code unit is actually the original 16-bit Unicode character, just because the Unicode is now adjusted, is no longer a wide character can represent a character.
For a more detailed description of the code points and code units, you can refer to this article:
code points and code units in Java ( http://blog.csdn.net/weizhaozhe/article/details/3909079)



Java learns from 0--string

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.