Đang mở hậu trường...
Chọn đáp án để xem tỉ lệ cộng đồng và giải thích. Câu hỏi được chọn tự động — mọi người cùng làm 1 câu mỗi ngày.
A junior developer creates a `User` class and overrides `equals()` to compare users by their `id` field, but forgets to override `hashCode()`. He then puts a `User` object into a `HashMap<User, String>` and later tries to look it up using a *different* `User` instance that has the same `id`. What is the most likely result?