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
- 
				admin
 - Site Admin
 - Posts: 10443
 - 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.
Who is online
Users browsing this forum: No registered users and 9 guests