0% found this document useful (0 votes)
70 views2 pages

Unit 4 Question Bank

The document is a question bank for the course 'Principles of Programming Languages' at Dr. D. Y. Patil Institute of Technology, focusing on Unit 4 which covers Inheritance, Packages, and Exception Handling in Java. It includes various questions related to inheritance types, exception handling concepts, abstract classes, and the differences between interfaces and abstract classes. The questions aim to assess understanding of Java programming principles and practices.

Uploaded by

gaurav274chavan
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)
70 views2 pages

Unit 4 Question Bank

The document is a question bank for the course 'Principles of Programming Languages' at Dr. D. Y. Patil Institute of Technology, focusing on Unit 4 which covers Inheritance, Packages, and Exception Handling in Java. It includes various questions related to inheritance types, exception handling concepts, abstract classes, and the differences between interfaces and abstract classes. The questions aim to assess understanding of Java programming principles and practices.

Uploaded by

gaurav274chavan
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
You are on page 1/ 2

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.

You might also like