Question 20
Back to Exercise
What is Objects.hash(a, b, c) typically used for?
- A Encrypting passwords
- B Implementing hashCode() from several fields Correct
- C Comparing objects
- D Creating unique IDs
Correct Answer: Option B
It is null-safe and combines the fields' hash codes.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!