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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

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

Post 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.

admin
Site Admin
Posts: 8958
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests