About Question enthuware.ocpjp.v17.2.3448 :
Moderator: admin
-
- Posts: 30
- Joined: Sun Feb 18, 2024 7:21 pm
- Contact:
About Question enthuware.ocpjp.v17.2.3448 :
If "None of the above are correct", then what is the correct answer?
-
- Site Admin
- Posts: 10078
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3448 :
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,
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,
You may do the same for other options.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.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 33 guests