Skip to content

Module 03 · Object-Oriented Java

The heart of the exam (objective group 3): how Java models types and behavior — classes, inheritance and polymorphism, interfaces, enums, records, sealed types, nested classes, and modern pattern matching. This is the largest module; take the lessons in order, as each builds on the last.

Lessons

#LessonWhat it covers
01Classes & ObjectsFields/methods/constructors, this, static vs instance, init order, overloading.
02Inheritance & Polymorphismextends/super, overriding vs hiding, Object methods, casting, final.
03InterfacesAbstract/default/static/private methods, constants, the diamond conflict.
04EnumsFields/constructors/methods, values()/valueOf(), per-constant bodies, enums in switch.
05RecordsComponents, canonical/compact constructors, accessors, immutability.
06Sealed Typessealed/permits, final/sealed/non-sealed, exhaustive switch.
07Nested & Inner ClassesStatic nested, inner, local, anonymous; capture rules.
08Pattern Matchinginstanceof patterns, switch patterns, record deconstruction, guards.

Module Mini-Exam

A timed, mixed quiz covering the whole module. Aim well above the real exam's 68% pass bar.

Mini-Exam

  • 12 questions
  • 25 minutes
  • 13 total points
  • Pass: 9 pts (68%)