About Question enthuware.ocpjp.v7.2.1515 :
Posted: Sat Aug 17, 2013 5:32 am
I don't agree with the answer.
It's true to say we can't be sure about equality of two object with the hascode method.
but, for inequality it's the same as 2 non equal objects should have the same hascode. So testing the inequality with a hascode can't give a sure answer about inequality.
It's true to say we can't be sure about equality of two object with the hascode method.
but, for inequality it's the same as 2 non equal objects should have the same hascode. So testing the inequality with a hascode can't give a sure answer about inequality.