Loading…
Loading…
A 20-question mixed review of OCP Java 21 Chapter 6: inheritance and class modifiers, this and super, constructors and constructor chaining, initialization order, final fields, overriding and hiding, abstract classes and immutable objects.
A mixed review of Chapter 6: Class Design. Take it after finishing the chapter, from Inheritance and Class Modifiers to Immutable Objects and Defensive Copies.
Several questions combine rules from different articles, as the real exam does. All questions follow Java 21 rules, except the one that explicitly asks about Java 25. Aim for at least 15 out of 20 (75%) before moving on to Chapter 7.
Quiz path: step 42. Take the quizzes in this order, after reading each article.
Previous quiz: Immutable Objects and Defensive Copies (OCP 21)
Next quiz: Interfaces and Abstract Methods (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.