Posts

Showing posts from 2012

EQUALS AND HASHCODE RELATION

Image
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.