title: What is a "best case scenario" to use predicate(java.util.function.Predicate) in java
body: <p>I am going through the code which uses Predicate in Java 8.Can someone help me with the best case scenario to use Predicate. In Which cases we should use Predicate and in which scenarios if conditions is used?</p>