Page 1 of 1

About Question enthuware.ocpjp.v7.2.1597 :

Posted: Tue Sep 23, 2014 3:21 am
by JavaCoffee
Answer C) If a is equal to 0, it's gonna throw a RuntimeException, is that all right ? Doesn't it break the contract between hashCode & equal ?

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

Posted: Tue Sep 23, 2014 9:24 am
by admin
No, why do you think so?
Also, c is not a correct option.