About Question enthuware.ocpjp.v21.2.3689 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
steevman
Posts: 1
Joined: Wed Apr 02, 2025 4:49 am
Contact:

About Question enthuware.ocpjp.v21.2.3689 :

Post by steevman »

The question here states "Identify correct statements.".
The option "Class B will compile if, instead of final, it is made non-sealed." is considered wrong, with the explanation:
"A permitted subclass of a sealed class must be final, non-sealed, or sealed. So, final is fine for class B."

While final is perfectly fine, so is "non sealed", which makes "Class B will compile if, instead of final, it is made non-sealed." true.

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

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

Post by admin »

Actually the option is trying to imply that final has to be removed and then made non-sealed. But you are right, it is not written correctly to imply the same unambiguously.
Fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests