Loading…
Loading…
A 20-question mixed review of OCP Java 21 Chapter 7: interfaces and their implicit modifiers, default, static and private interface methods, enums, sealed types, records, record patterns, nested, local and anonymous classes, and polymorphism with casting.
A mixed review of Chapter 7: Beyond Classes. Take it after finishing the chapter, from Java Interfaces to Java Polymorphism.
Several questions combine rules from different articles, as the real exam does. All questions follow Java 21 rules. Aim for at least 15 out of 20 (75%) before moving on to Chapter 8.
Quiz path: step 52. Take the quizzes in this order, after reading each article.
Previous quiz: Polymorphism and Casting (OCP 21)
Next quiz: Lambda Expression Syntax (OCP 21)
20 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.