Exceptions Flashcards

1
Q

Checked vs. unchecked exceptions. Why would one use former or later?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Difference in Error and UncheckedException

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Could we have only try and finally without catch

A

Yes, it is not mandatory to use catch block with finally

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Cases when the finally block isn’t executed

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is exception handling mechanism

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Java Exceptions API

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to avoid catch block

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Multi-Catch catch (FileNotFoundException | IOException e)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is try-with-resources

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are Suppressed exceptions

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

NoClassDefFoundError vs ClassNotFoundException

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly