0 votes
in JAVA by

Which interface is used to represent a predicate (a function that returns a boolean value) in Java?

a) Function

b) Predicate

c) Supplier

d) Runnable

1 Answer

0 votes
by
Answer: b) Predicate

Explanation: The Predicate interface is used to represent a predicate (a function that returns a boolean value) in Java.
...