While reviewing Java types collections, two equal identifiers are different objects. Which action best addresses the problem?
Answer options
- A. Implement matching equals and hashCode
- B. Use an immutable key type
- C. Store them in a list
- D. Use a keyed map