Did you read the explanation for this option? It explains why this is invalid.
As per the problem statement, you have to pick only such a lambda expression that can be used to invoke a method that accepts a java.util.function.Predicate.
() -> true is a valid lambda expression as such but it cannot implement a Predicate.
Did you read the explanation for this option? It explains why this is invalid.
As per the problem statement, you have to pick only such a lambda expression that can be used to invoke a method that accepts a java.util.function.Predicate.
() -> true is a valid lambda expression as such but it cannot implement a Predicate.
Did you read the explanation for this option? It explains why this is invalid.
As per the problem statement, you have to pick only such a lambda expression that can be used to invoke a method that accepts a java.util.function.Predicate.
() -> true is a valid lambda expression as such but it cannot implement a Predicate.
Sorry English is my 2nd lanugage, just misunderstood the question , now I get it. Thanks.