Loading…
Loading…
Ten exam-style questions on static, bound, unbound and constructor method references, lambda equivalents, parameter order, overload selection, ambiguous references, and when a lambda can't become a method reference, with explanations.
Practice questions for the article Java Method References: Static, Bound, Unbound and Constructor.
For each method reference, write out the equivalent lambda using the target interface's parameters. Aim for at least 8 out of 10.
Quiz path: step 55. Take the quizzes in this order, after reading each article.
Previous quiz: Functional Interfaces (OCP 21)
Next quiz: Built-in 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.