Browse Oracle Certification Guides

1Z0-829 Java 17 Classes, Interfaces, and Inheritance Guide

Study 1Z0-829 Java 17 Classes, Interfaces, and Inheritance: key concepts, common traps, and exam decision cues.

OOP questions are usually won by candidates who keep three things separate: declared type, runtime type, and interface or class member rules.

OOP-choice map

If the stem is mainly about… Better first instinct
member access and initialization read the declarations before following behavior
overridden instance methods runtime dispatch decides implementation
lambda target or default methods interface contract is likely the real issue
nested helper type check whether it is static nested, inner, local, or anonymous

What the exam is really testing

If the code shows… Strong reading
parent reference calling child behavior declared access and runtime dispatch both matter
interface defaults conflict resolution or override rules may be under test
local or anonymous class captured scope and type form matter

Common traps

Trap Better rule
assuming a parent reference changes the runtime implementation overriding still dispatches by runtime type
treating every nested type as an inner class enclosing-instance behavior depends on the exact form
thinking interface defaults remove the need for resolution conflicts still need explicit handling

Quiz

Loading quiz…
Revised on Sunday, May 10, 2026