Loading…
Loading…
Ten exam-style questions on extends and single inheritance, inherited and non-inherited members, java.lang.Object, final and other class modifiers, top-level class access, and resolving names with this and super, with explanations.
Practice questions for the article Java Inheritance and Class Modifiers: extends, Object, this and super.
The questions follow Java 21 rules, as on the 1Z0-830 exam. For every name used in a method, work out which scope it comes from: local, current class or parent. Aim for at least 8 out of 10 before moving on.
Quiz path: step 36. Take the quizzes in this order, after reading each article.
Previous quiz: Chapter 5 Review: Methods (OCP 21)
Next quiz: Constructors, this() and super() (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.