当前位置:网站首页>Review of API knowledge

Review of API knowledge

2020-11-09 00:05:08 qintia

Object

rewrite toString, The default is to use Object Of toString() Return the address value , After rewriting, it returns the property value of the object .
rewrite equals, The default is to use Object Of equals() Compare the address values between objects , After rewriting, compare the property values between objects .
instanceof yes Java Keywords in , Used to determine obj instanceof Student, namely Judge obj Is it a student type .

String Class represents a string ,Java All string literals in the program ( Such as "abc") Are implemented as examples of this class .
Strings are constants , Their values cannot be changed after they are created , The string buffer supports variable strings .
The bottom layer of the string creates a char[] Array to store character data
The essence of a string is a char[]
To be added ...

版权声明
本文为[qintia]所创,转载请带上原文链接,感谢