About Question enthuware.ocpjp.v17.2.3448 :
Posted: Sat Apr 20, 2024 5:30 pm
If "None of the above are correct", then what is the correct answer?
Java Certification Resources and Java Discussion Forum
https://enthuware.com/forum/
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.