Loading…
Loading…
Ten exam-style questions on the single abstract method rule, the @FunctionalInterface annotation, inherited and merged abstract methods, default, static and private methods, Object method redeclarations, and invalid lambda targets, with explanations.
Practice questions for the article Java Functional Interfaces: The Single Abstract Method Rule.
For every interface, count the abstract methods: add inherited ones, skip methods with bodies, and skip public Object methods. Aim for at least 8 out of 10.
Quiz path: step 54. Take the quizzes in this order, after reading each article.
Previous quiz: Lambda Expression Syntax (OCP 21)
Next quiz: Method References (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.