About Question enthuware.ocpjp.v17.2.3448 :

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

Moderator: admin

Post Reply
likejudo
Posts: 30
Joined: Sun Feb 18, 2024 7:21 pm
Contact:

About Question enthuware.ocpjp.v17.2.3448 :

Post by likejudo »

If "None of the above are correct", then what is the correct answer?

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

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

Post by admin »

That option is correct.
The rules are given in the explanations. For example, option 1 says Print must be an interface and it is wrong because, as the explanation says,
Ideally, Print should be an interface or an abstract class but there is no such technical restriction.

As per JLS Section 7.7.4:
The service must be a class type, an interface type, or an annotation type. It is a compile-time error if a provides directive specifies an enum type as the service.
You may do the same for other options.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 25 guests