Question
Which statement is not true of Predicate?
- A. A boolean is returned from the method it declares.
- B. It is an interface.
- C. The method it declares accepts two parameters.
- D. The method it declares is named test.
C.
Note
Predicate is an interface with one method.
The method signature is boolean test(T t).
Option C is the answer because the method accepts one parameter rather than two.
PreviousNextRelated