摘要: Q:Java对象的hashcode是怎么得到的 A:Java对象的hashcode是native方法,不是通过Java实现的。hashcode的值是根据对象的内存地址得到的一串数字。 Q:如果两个对象的hashcode相等,那么两个对象的==是否也想等? A:不一定,这个说法顺序弄反了。应该改为:如 阅读全文
posted @ 2021-05-10 15:57 鹿小虎 阅读(208) 评论(0) 推荐(0)
摘要: 重写父类方法:control + o 实现父类方法:control + i 最全的一个按键:control + 回车 阅读全文
posted @ 2021-05-10 13:31 鹿小虎 阅读(78) 评论(0) 推荐(0)