Which of the above two statements define the equals and hashcode contract in JAVA?
Statement -1 If two objects are equal, then their hash code must be the same.
Statement -2 If two objects have same hash code, then may or may not be equal.
Reveal answer
Fill a bubble to check yourself