Object
2016-08-01 本文已影响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相同,对象可以不同。