1.

What Will Happen If Two Different Keys Of Hashmap Return Same Hashcode()?

Answer»

If two KEYS of HashMap RETURN same HASH code then they will end up in the same BUCKET, hence collision will occur. They will be stored in a linked list together.

If two keys of HashMap return same hash code then they will end up in the same bucket, hence collision will occur. They will be stored in a linked list together.



Discussion

No Comment Found