Which statement is true about the single abstract method of the java.util.function.Predicate interface?
Which statement is true about the single abstract method of the java.util.function.Predicate interface?
The java.util.function.Predicate interface in Java defines a single abstract method named test, which accepts one argument and returns a boolean. This method is used to evaluate whether the given argument satisfies a certain condition. Therefore, the correct statement about the single abstract method of the Predicate interface is that it accepts one argument and returns boolean.
All in for B
B is correct.
Answer is B.