Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. Predicate represents an anonymous function that accepts one argument and produces a result.|
Supplier represents an anonymous function that accepts no argument and produces a result.
Consumer represents an anonymous function that accepts an argument and produces no result.
Sample Code for Predicate
Sample Code for Supplier
Sample Code for Consumer
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   java8   predicate   consumer   supplier   lambda expression expert|