Simple and effective Workarounds !
Sunday, 10 January 2016
Contract Between HashCode and equals() Method in Java
Contract between hashcode and equals():
If two objects are considered equal using equals() method Then they must have identical hashcode() .
So if you override equals() then override hashCode() as well.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment