Question 4
Back to Exercise
Which functional interface takes a value and returns a boolean?
- A Function<T, R>
- B Predicate<T> Correct
- C Supplier<T>
- D Consumer<T>
Correct Answer: Option B
Its method is test(T).
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!