Computer Science, asked by parikshithkiccha30, 1 day ago

Which of the below does Stream filter() operates on O Class O Interface O Methods O Predicate W​

Answers

Answered by cutieePreeti
4

Answer:

Java stream provides a method filter() to filter stream elements on the basis of given predicate. Suppose you want to get only even elements of your list then you can do this easily with the help of filter method. This method takes predicate as an argument and returns a stream of consisting of resulted elements.

Explanation:

Your answer is PREDICATE☑️

Similar questions