Dr. D. Y.
Patil Institute of Technology, Pimpri, Pune
Department of Computer Engineering
QUESTION BANK
210255: PRINCIPLES OF PROGRAMMING LANGUAGES
Unit – 4 Inheritance, Packages and Exception Handling
Sr.
Question Description
No
Define is inheritance. List the advantages of Inheritance. Explain Simple inheritance in java
1
with example.
2 Define Inheritance and explain the concept of multilevel inheritance with example
3 Explain various inheritances in Java with example
4 Elaborate the significance of key word "Super" in Java. Demonstrate with example of each case
5 Explain super class reference with example
6
List and explain different ways of the order of constructor execution in Java
7 Summarize the concept of Dynamic method dispatch in Java Programming
Describe Exception. Write any two examples of exception. Explain keywords try, catch, throw,
8
throws and finally related to exception handling
9 Write notes on abstract class and abstract class with abstract methods in java
Demonstrate Object Classes in Java with example program and List any five methods in Object
10
Classes
Explain the following Java concepts and state the difference with example. i) Interface ii)
11
Abstract class
Demonstrate the methods of creating packages and importing them in other java programs with
12
example
13 Write about the access protection in packages
State two major differences in class and an interface. Explain multiple inheritance in Java with
14
example
Define the term exception. State the advantage of exception handling. Explain any 5 built in
15
exceptions in Java.
16 Explain builtin java exceptions with example
17 Explain userdefined java exceptions with example
State the importance of finally blocks. Illustrate the ways finally block differ from finalize()
18 method.
19 Explain Print Writer Class and list the methods in Print Write Class in java
Differentiate byte streams and character streams and demonstrate the use of console class to get
20
inputs and show results.