Page 1 of 1
hashcode and equals
Posted: Fri Sep 04, 2015 5:08 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: hashcode and equals
Posted: Fri Sep 04, 2015 8:26 pm
by admin
Please specify the question id so that we can look it up and check.
Re: hashcode and equals
Posted: Sat Sep 05, 2015 1:58 pm
by boyonsea
enthuware.ocpjp.v7.2.1515
Q32 test 3
Re: hashcode and equals
Posted: Sat Sep 05, 2015 8:55 pm
by admin
The problem statement does say, "(Assume that the equals and hashCode contract is not violated by the class.)"