Working of HashMap and equals/hashCode contract
Filed under Goldman Sachs
The question
Explain how HashMap works internally and what happens if you do not override equals and hashCode methods for a custom class.
No write-up yet. Related questions below have one.
Related Goldman Sachs questions
Collected from public candidate posts and coding forums. Updated Nov 2026.