You are on page 1of 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