~15 min by voice
The interviewer wants to see whether you understand the equals/hashCode contract and how a HashMap looks up keys: first it picks a bucket by hashCode, then it compares using equals. Plus basic care: overriding rather than overloading, handling null and checking the type, immutable fields.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.
Sign in to answerBest with headphones · ~15 min