Files
Hui-s-notebook/logseq-java/pages/Object.md
2024-02-02 00:12:49 +08:00

13 lines
556 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- Object[[类]]
- 是所有Java类的超类基类父类以及所有的类都有Object的[[方法]]
- [[toString]]
- 打印[[对象]]内存地址
- ((62564ae5-f389-453b-b790-5c15d527aacf))
- [[equals]]
- 比较两个对象是否是同一个对象
- ==在比较[[基本数据类型]]时是比较值 #关系运算符
比较 [[引用数据类型]]时是比较地址
- ==与equals的区别 #Java面试
- equals()通常比较对象的内容
- [[finalize]] #Java面试
- 该方法是[[JVM]]销毁对象的方法,程序员不需要调用