A. toupperinvariant ();
VaR b1 = A. Equals ("A", stringcomparison. ordinalignorecase );
= Compare the (HEAP) memory address of the objects stored in the variable (stack) memory to determine whether the addresses of the two objects are the same, that is, whether the addresses of the two objects are the same. Compare pointer operations in the true sense.
Equals is used to compare whether the content of two objects is equal. Because all classes inherit from the java. Lang. Object Class, equals applies to all objects,
If this method is not overwritten, the method in the object class is called, while the equals method in the object returns the = judgment.
Thoroughly understand character encoding (UNICODE, MBCS, UTF-8, UTF-16, utf-32, big endian, little endian ...)
46360021
(1) Definition of "Byte"
Byte is a measurement unit, indicating the amount of data. It is a measurement unit used by Computer Information Technology to measure storage capacity.
(2) Definition of "characters"
A character refers to the text and symbols used in a computer, such as 1, 2, 3, A, B, C ,~! · # ¥ % ...... -* () -- +, And so on.
(3) "Byte" and "character"
They are not a single-level concept, so there is no "difference" between the two. In different encodings, the correspondence between characters and bytes is different:
Securestring indicates the text to be kept confidential. The text is encrypted for the purpose of confidentiality and deleted from the computer memory when it is no longer needed. This class cannot be inherited
14-character string and Text Processing