wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Exception Handling

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Exception is a ____________ in Java?

a)

Class

b)

Interface

c)

Abstract class

d)

other

e)

All

2.

When does Exceptions in Java arises in code sequence?

a)

Run time

b)

Compilation time

c)

Can occur at any time

d)

None of the above

3.

Which of these keywords must be used to handle the exceptions thrown by try block in some rational manner?

a)

try

b)

finally

c)

throw

d)

catch

4.

Which of these are java .lang .Error in exception handling in Java?

a)

Virtual Machine Error

b)

IO Error

c)

AssertionError

d)

ThreadDeath

e)

All

5.

Multiple catch syntax was introduced in

a)

java 5

b)

java 1

c)

java 7

d)

java 8

6.

Can we compile a program without exception handling?

a)

Yes

b)

No

7.

What time of exceptions cannot be ignored at compile time?

a)

Checked exceptions

b)

Unchecked exceptions

c)

Runtime exceptions

d)

both b and c