Java provides a new interface named Predicate which is a functional interface. A functional interface is an interface which will have exactly one abstract method in addition to one or more default methods. In the case of Predicate interface, the abstract method is test method whose signature is as shown below boolean test(T t) In…… Continue reading Java Predicate