Object

作者: 尉昌达 | 来源:发表于2016-08-01 09:28 被阅读7次

clone();
equals();
protected void finalize();
Class<?> getClass();
int hashCode();
void notify();
void notifyAll();
String toString();
void wait();
void wait(long timeout);
两个对象equals相同,则hashCode必须相同
如果hashCode相同,对象可以不同。

相关文章

网友评论

      本文标题:Object

      本文链接:https://www.haomeiwen.com/subject/shftsttx.html