About Question enthuware.ocpjp.v17.2.3720 :

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
dalvir
Posts: 9
Joined: Mon Apr 15, 2024 11:36 pm
Contact:

About Question enthuware.ocpjp.v17.2.3720 :

Post by dalvir »

Hi

For the option c, I believe the following description should be changed:
---------------------------------------------
"Without pattern matching, you would have to do explicit cast like this:
if(a instanceof B b1){   
( (B) b1 ).b();
}
-----------------------------------------------------
I believe above code can be changed to:

if(a instanceof B){   
( (B) a ).b();
}

Please provide your guidance on it.

Thanks

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

Re: About Question enthuware.ocpjp.v17.2.3720 :

Post by admin »

Yes, you are right. That should be fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests