0% found this document useful (0 votes)
108 views

Question Bank JAVA Module 4

This document contains a question bank for an object programming exam in Java. It includes 13 multiple choice questions covering topics like packages, exception handling, and exception classes. The questions range from 4-8 marks each and cover key Java concepts such as importing packages, access protection, try/catch blocks, built-in exceptions, creating custom exception classes, and using throw, throws, and finally keywords.

Uploaded by

Poornima U
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)
108 views

Question Bank JAVA Module 4

This document contains a question bank for an object programming exam in Java. It includes 13 multiple choice questions covering topics like packages, exception handling, and exception classes. The questions range from 4-8 marks each and cover key Java concepts such as importing packages, access protection, try/catch blocks, built-in exceptions, creating custom exception classes, and using throw, throws, and finally keywords.

Uploaded by

Poornima U
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/ 1

Question Bank

Subject: Object Programming with JAVA Subject Code BCS306A


Semester: III Branch CSE/ISE/AI&ML/AI&DS/CSD

Q. No MODULE 4
Questions Marks
1 What do you mean by a package? How do you use it in a Java program? Explain 8
with a program
2 How do you import a package? Explain. 4
3 Write a note on access protection in Java 6
4 Define an exception. What are the key terms used in exception handling? Explain. 6

5 Demonstrate working of nest try block with an example 5


6 Write a program which contains one method which will throw 5
IllegalAccessException and use proper exception handles so that exception
should be printed.
7 Write a note on: a. Java’s built-in exception b. Uncaught Exceptions 6
8 How do you create your own exception class? Explain with a program. 6
9 Give the basic form of an exception handling block 8
10 Illustrate the multiple catch clause with an example program. 8

11 Explain with example throw and throws keyword in java. 6


12 Write short notes on chained exception. 4

13 Explain the use of finally block 4

You might also like