Possible Duplicates:
In Java, why must equals() and hashCode() be consistent?
Why hashCode() can return the same value for different objects in java?
In JAVA API we can see that
If two objects are not equal according to equals, they are not required to return different hashCode values.
Why is it so?
If two objects are not equal according to equals, then it should be required to return different hashCode values right?