Loading…
Loading…
Ten exam-style questions on lambda syntax: optional parentheses, braces, return and semicolons, var and typed parameters, target typing, void-compatible bodies, name clashes with local variables, and deferred execution, with explanations.
Practice questions for the article Java Lambda Expressions: Syntax, Parameters and Bodies.
Check each lambda left to right: the parameter list, the arrow, then whether the body has braces and needs return. Aim for at least 8 out of 10.
Quiz path: step 53. Take the quizzes in this order, after reading each article.
Previous quiz: Chapter 7 Review: Beyond Classes (OCP 21)
Next quiz: 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.