Search Interview Questions
| 2679 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core Java - Interview Questions and Answers for 'Predicate' - 1 question(s) found - Order By Newest|
|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|