Is it possible for two instances of Object
to have the same hashCode()
?
In theory an object's hashCode
is derived from its memory address, so all hashCodes
should be unique, but what if objects are moved around during GC?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…