InterviewSolution
Saved Bookmarks
| 1. |
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 |
|
Answer» The correct choice is (b) 2 Explanation: The key is hashed twice; first by hashCode() of Object class and then by internal hashing method of HashMap class. |
|