Loading…
Loading…
Ten exam-style questions on Predicate and, or, negate and not, Function andThen versus compose, Consumer andThen, and the primitive functional interfaces with their renamed methods, with explanations.
Practice questions for the article Java Functional Interface Convenience Methods and Primitive Specializations.
For chained functions, write down which one runs first. For primitive interfaces, check the method name: a primitive return means an As name. Aim for at least 8 out of 10.
Quiz path: step 57. Take the quizzes in this order, after reading each article.
Previous quiz: Built-in Functional Interfaces (OCP 21)
Next quiz: Variables in Lambdas (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.