Not sure if the answer provided is correct.
It assumes that the user has overridden the hashcode and equals method correctly.
About Question enthuware.ocpjp.v7.2.1515 :
Moderator: admin
-
- Posts: 16
- Joined: Fri Sep 04, 2015 5:06 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1515 :
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.)".\
Who is online
Users browsing this forum: No registered users and 4 guests