Question: What is a valid use of the hashCode() method?
- encrypting user passwords
- deciding if two instances of a class are equal
- enabling HashMap to find matches faster
- moving objects from a List to a HashMap
Answer: The correct answer of the above question is Option B:deciding if two instances of a class are equal