Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.532 :

Posted: Wed Jan 05, 2011 8:02 pm
by ETS User
the question:
If a.equals(b) returns true, b instanceof class_of_a should always be true.

the correct answer was false for the question.

I understand the explaination that anyone can implement equals in a strange way so it's not always true but proper implementation would test instanceof....so it SHOULD equal true.

I would have answered false if the question used the word MUST instead of SHOULD.

Re: About Question com.enthuware.ets.scjp.v6.2.532 :

Posted: Thu Jan 06, 2011 6:47 am
by admin
I see your point how it might cause confusion. Should will be replaced with Must asap.

thank a lot for your feedback.
Paul.