0% found this document useful (0 votes)
9 views1 page

Java Programming Question Bank: Methods & Inheritance

Uploaded by

james1181325
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Java Programming Question Bank: Methods & Inheritance

Uploaded by

james1181325
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like