Exception Handling Flashcards

1
Q

what has checked expectations?

A

checked by the compiler at compile time

throw clause in the method declaration, caught in the catch block

common: class not found exception - class definition not found, IOExectpion, SQLException

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

what are unchecked exceptions?

A

not checked at compile time

runtime exception

common: ArrayIndexOutOfBoundExcetion, IllegalArgumentException, NullPointerExcetion

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

What are errors?

A

not checked at compile time

common: OutOfMemoryError

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