While finding the correct location for saving key value pair, how many times the key is hashed?

a) 1
b) 2
c) 3
d) unlimited till bucket is found

1 thought on “While finding the correct location for saving key value pair, how many times the key is hashed?”

  1. b
    Explanation: The key is hashed twice; first by hashCode() of Object class and then by internal hashing method of HashMap class.

Leave a Comment