The answer is False because it is given that A.equals(B) returns true i.e. objects are equal and now its hashCode is asked which is always independent of the fact that whether objects are equal or not. So, GetHashCode for both of the objects returns different value.
If A.equals(B) is true then A.getHashcode & B.getHashCode must always return same hash code.8/12/2008
0 Comments
Leave a Reply. |
ArchivesCategories |