LearnFrenzy
Sign in Take a free test

Object Class and Wrapper Classes · Object and Wrapper Classes MCQ · Question 20

What Objects.hash is for Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links