EQUALS AND HASHCODE RELATION

The Equals and hashcode has the following relation you can see from the image The Equals method in the above program is return false even though hashcode method is giving same value as 3185. So we can find that hash value of two object need not be same.