Compile-time type vs runtime type: The compile-time type is the declared type; the runtime type is the actual object type.
How to apply it: The compiler checks methods using the declared type; the JVM executes overridden methods using the runtime type.
Course: AP Computer Science A · Unit: Inheritance
Practice questions about Compile-time type vs runtime type on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.