Exceptions Flashcards
1
Q
Why does Java need exceptions? Does it?
A
2
Q
Give an example of two exceptions thrown by Java libraries.
A
3
Q
How are exceptions modeled? Can I create my own?
A
4
Q
Talk about the keywords try, catch, and throw.
A
5
Q
Is it possible to execute two catch blocks from one exception in a try/catch declaration?
A
6
Q
What does the finally keyword do?
A
7
Q
Does Java require us to catch exceptions if they might be thrown?
A
8
Q
What is a checked exception? An unchecked exception? How can I tell one from the other?
A
9
Q
If I call a method that might throw a checked exception and I don’t want to catch it, what must I do?
A