Hash code points to certain “area” (or list, bucket etc) internally. Since different key objects could potentially have the same hash code, the hash code itself is no guarantee that the right key is found. The hashtable then iterates this area (all keys with the same hash code) and uses the key’s equals() method to find the right key. Once the right key is found, the object stored for that key is returned. A combination of the hashCode() and equals() methods are used when storing and when looking up objects in a hashtable.