Object-Oriented Programming Interview Questions & Answers — Cracked Java
Cracked Java console
0
S
Modules/Object-Oriented Programming
// MODULE · 16 TOPICS · 89 QUESTIONS

Object-Oriented Programming

The four pillars, equals/hashCode, immutability, SOLID, GoF design patterns, and modern Java 25 OOP (records, sealed classes, pattern matching). About 30% of any senior Java interview.

0%
Reviewed
0 / 89
Topics done
0 / 16
Est. time left
~24h
Next up
Four Pillars: Encapsulation, Inheritance, Polymorphism, Abstraction
16 topics · tap to expand
01

Four Pillars: Encapsulation, Inheritance, Polymorphism, Abstraction

JuniorNot started
02

Classes, Constructors & Initialization Order

MidNot started
03

Inheritance, super, and Method Overriding

MidNot started
04

Abstract Classes vs Interfaces (Post Java 8)

MidNot started
05

Polymorphism in Practice

MidNot started
06

Access Modifiers & Encapsulation

JuniorNot started
07

equals, hashCode, toString — the Object Contract

MidNot started

The contract every Java dev must internalize and the inheritance trap that breaks symmetry. Overlaps with the Collections module but lives here too as core OOP.

01State the equals contract (all five properties).Mid02State the hashCode contract and the relationship with equals.Mid03Show the symmetric equals trap with `ColoredPoint extends Point`.Senior
08

Inner Classes — Static Nested, Inner, Local, Anonymous, Lambdas

MidNot started
09

Immutability & Defensive Copying

MidNot started
10

Composition vs Inheritance

MidNot started
11

SOLID Principles

MidNot started
12

Creational Design Patterns

MidNot started
13

Structural Design Patterns

MidNot started
14

Behavioral Design Patterns

MidNot started
15

Modern OOP — Records, Sealed Classes, Pattern Matching (Java 14–25)

MidNot started
16

Low-Level Design Practice

SeniorNot started