What is Predicate Functional Interface in Java 8

Predicate in Java 8 The Predicate is one of the Functional Interfaces type introduced in Java 8. Generally predicate means a statement that determines if a value could be true or false. So predicate is used to test a condition which will return a boolean value. Syntax: @FunctionalInterface public interface Predicate { boolean test(T t); … Read more