Java Programming – Merged Question Bank
Part I: Methods & Parameters
1. Explain call by value and call by reference with an example.
2. Explain objects as parameters and returning objects with an example.
3. Explain Java method overloading with an example.
Part II: Inheritance & Interfaces
1. Write a Java program to implement multilevel inheritance with three levels of hierarchy.
2. Explain how an interface is used to achieve multiple inheritance in Java.
3. Define interface, reference variables in interface, nested interfaces and multiple inheritance in Java.
4. Explain the general form of an interface and implementing the interface with an example.
Part III: Keywords & Abstraction
1. What is an abstract class and abstract method? Explain with an example.
2. Define static, final, this keywords and access control in Java.
3. Define method overriding, dynamic method dispatch, abstract class and uses of the super keyword in
Java.