+91-85006-22255
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.
o1.equals(o2)
o1.hashCode() == o2.hashCode()
Topic: Collection Framework In Java
Read this topic Take test on this topic
Open In App