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.
About Question com.enthuware.ets.scjp.v6.2.532 :
Moderators: Site Manager, fjwalraven
Online
-
- Site Admin
- Posts: 10061
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.532 :
I see your point how it might cause confusion. Should will be replaced with Must asap.
thank a lot for your feedback.
Paul.
thank a lot for your feedback.
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 62 guests