LearnFrenzy
Sign in Take a free test

Lambda Expressions · Lambda Expressions MCQ · Question 4

The Predicate interface Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links