Middle
How many probes occur when calling the HashMap.get(key) method if the key is present in the table?
sobes.tech AI
Answer from AI
Two.
- The
hashCode()method is called for the key. - The
equals()method is called for the key to find the corresponding entry (Entry or Node) in the linked list (or tree) in the appropriate bucket.