Exceptions Flashcards

1
Q

Can a “finally” block be used without “catch”?

A

Yes.

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

Is it possible for a “finally” block NOT to be called?

A

Yes. If someone calls “System.exit()” or if a fatal error causes the process to abort.

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