Menu
Question Index
...

Which of the following is incorrect?

X: If o1.equals(o2), then o1.hashCode() == o2.hashCode() should always be true.
Y: If o1.hashCode() == o2.hashCode() is true, it doesn’t mean that o1.equals(o2) will be true.


X only
Y only
Both are correct
Both are incorrect

Doubts

Problems

Topic: Collection Framework In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App