Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
Java
When Things Go Wrong
equals, hashCode and toString
Quiz
Q 01
/ 06
Intermediate
Question 1 of 6. 0 correct, 0 incorrect.
Which statement is the contract between
equals
and
hashCode
?
Two objects that are equal must return the same hash code
Two objects that are not equal must return different hash codes
Two objects that return the same hash code must be equal
Check answer
Home
Learn
Paths
Saved
Community