I think the good answer should be:
It is an abstract class that has only one abstract method ...
and not
It is an interface that has only one method ...
As it is written in explanation:"This interface has exactly one abstract method named test"
And in official documentation (http://docs.oracle.com/javase/8/docs/ap ... icate.html) java.util.function.Predicate has more than one method (and, isEqual, negate, or)
About Question enthuware.ocpjp.v8.3.1470 :
Moderators: Site Manager, fjwalraven
-
- Posts: 18
- Joined: Mon Apr 01, 2013 8:38 am
- Contact:
-
- Site Admin
- Posts: 10064
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.3.1470 :
You are partially right. It does have more than one method (although only one abstract method). However, it is an interface not an abstract class.
Fixed.
thank you for your feedback!
Paul.
Fixed.
thank you for your feedback!
Paul.
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 56 guests