I read couple of forums and I still fail to understand how is hashCode() computed and when?! I read in HashMap that hashCode() is called this way : hash(key.hashCode()); and in HashTable, it is computed with both the key and pair : h += e.key.hashCode() ^ e.value.hashCode();. Are they computed differently in HashMap and HashTable?
When do hashCode() gets called? I assume it happens when you try do a put(..), get(..) or delete(..)?