What is dynamic method dispatch, and why is it useful?
Inheritance and Polymorphism
Original Khojo Papers practice question — not from a past board paper.
super refers to the immediate superclass of the current object. It is used to call a superclass constructor with super(...), to invoke a superclass version of an overridden method with super.method(), and to reach a superclass member hidden by one of the same name in the subclass.
No citable source has been recorded for this record. Treat it as practice material, not as fact.
A call to super(...) must be the first statement of a constructor.
From the same topic and chapter, at a similar level.
What is dynamic method dispatch, and why is it useful?
Inheritance and Polymorphism
Why does Java not allow a class to extend more than one class?
Inheritance and Polymorphism
Distinguish between method overloading and method overriding.
Inheritance and Polymorphism
What is an abstract class, and how does it differ from an interface in Java?
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