What is an abstract class, and how does it differ from an interface in Java?
Inheritance and Polymorphism
Original Khojo Papers practice question — not from a past board paper.
Dynamic method dispatch is the mechanism by which a call to an overridden method is resolved at run time according to the actual type of the object rather than the declared type of the reference. It is useful because it lets a single reference of a superclass type work with objects of any subclass, so code written against the superclass keeps working when new subclasses are added.
No citable source has been recorded for this record. Treat it as practice material, not as fact.
This is the basis of run-time polymorphism in Java.
From the same topic and chapter, at a similar level.
What is an abstract class, and how does it differ from an interface in Java?
Inheritance and Polymorphism
Why does Java not allow a class to extend more than one class?
Inheritance and Polymorphism
What does the super keyword do in Java?
Inheritance and Polymorphism
Distinguish between method overloading and method overriding.
Inheritance and Polymorphism
A class B extends class A, and both define a method show(). If A a = new B(); a.show(); is executed, which version runs and why?
Inheritance and Polymorphism
State and verify the absorption law X + X·Y = X using a truth table.
Boolean Algebra