Loading…
Loading…
Ten exam-style questions on Supplier, Consumer, BiConsumer, Predicate, BiPredicate, Function, BiFunction, UnaryOperator and BinaryOperator: method names, type arguments, return types and choosing the right interface, with explanations.
Practice questions for the article Java Built-in Functional Interfaces.
For each lambda, count its parameters, then check whether it returns nothing, a boolean, the same type, or another type. Aim for at least 8 out of 10.
Quiz path: step 56. Take the quizzes in this order, after reading each article.
Previous quiz: Method References (OCP 21)
Next quiz: Convenience Methods and Primitive Functional Interfaces (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.