If I need to use only HashMapHashMap, why do I need to override equals() method along with hashcodehashCode()? How will not implemeting equals()implementing equals() affect the working of HashMapHashMap?
Remove tag from title. Spaces. hashcode (not hashCode). Add relevant tags.