About Question enthuware.ocpjp.v21.2.3721 :

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
mario.danelli
Posts: 2
Joined: Sat Oct 26, 2024 6:11 am
Contact:

About Question enthuware.ocpjp.v21.2.3721 :

Post by mario.danelli »

I think also the first response is valid in Java 21 with the statement "if (a instanceof A a1) a1.a();" considering in Java 21 is possible to use the instance of also for the type of which the variable is created.

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

Re: About Question enthuware.ocpjp.v21.2.3721 :

Post by admin »

You are right. This restriction was removed in Java 21. This has now been fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests