Page 1 of 1

About Question enthuware.ocpjp.v7.2.1515 :

Posted: Sat Sep 05, 2015 5:52 pm
by boyonsea
Not sure if the answer provided is correct.
It assumes that the user has overridden the hashcode and equals method correctly.

Re: About Question enthuware.ocpjp.v7.2.1515 :

Posted: Sat Sep 05, 2015 9:04 pm
by admin
This is a general statement about equals and hashCode contract. Even so, the problem statement does contain thisat the bottom, "(Assume that the equals and hashCode contract is not violated by the class.)".\