MCQs > IT & Programming > Core Java > Why is it important to override hashCode() when you override equals()?

Core Java MCQs

Why is it important to override hashCode() when you override equals()?

Answer

Correct Answer: Overriding equals without hashCode breaks the contract of hashCode().

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Core Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Core Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it