Java Inheritance and Recursion Cheat Sheet
The core ideas of Java Inheritance and Recursion distilled into a single, scannable reference — perfect for review or quick lookup.
Quick Reference
Inheritance (extends)
A mechanism where a subclass inherits fields and methods from a superclass using the extends keyword, establishing an is-a relationship and promoting code reuse.
Method Overriding
A subclass provides its own implementation of a method inherited from the superclass. The overriding method must have the same signature (name, parameters, return type).
super Keyword
A reference to the superclass used to call the parent constructor (super()), access overridden methods (super.method()), or reference parent fields.
Polymorphism
The ability of a superclass reference variable to hold a subclass object. Method calls are resolved at runtime based on the actual object type (dynamic dispatch).
Abstract Class
A class declared with the abstract keyword that cannot be instantiated. It may contain abstract methods (no body) that subclasses must implement.
Interface
A reference type that defines a contract of method signatures that implementing classes must provide. A class can implement multiple interfaces.
Recursion
A programming technique where a method calls itself to solve a problem by breaking it into smaller instances of the same problem.
Base Case
The stopping condition in a recursive method that prevents infinite recursion. It returns a value directly without making another recursive call.
Dynamic Dispatch
The mechanism by which Java determines which overridden method to call at runtime based on the actual object type, not the reference type.
Key Terms at a Glance
Get study tips in your inbox
We'll send you evidence-based study strategies and new cheat sheets as they're published.
We'll notify you about updates. No spam, unsubscribe anytime.