clone();
equals();
protected void finalize();
Class<?> getClass();
int hashCode();
void notify();
void notifyAll();
String toString();
void wait();
void wait(long timeout);
两个对象equals相同,则hashCode必须相同
如果hashCode相同,对象可以不同。
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
网友评论