Chapter 11 Exceptions and Advanced File I/O
IOException serves as a superclass for exceptions that are related to programming errors, such as n out-of-bounds array subscript
F
When an exception is thrown by code inside a try block, all of the statements in the try block are always executed
F
You cannot have more than one catch clause per try statement.
F
the throws clause causes an exception to be thrown
F
when in the same try statement you are handling multiple exceptions and some of the exceptions are related to each other through inheritance, you should handle the more general exception classes before the more specialized exception classes.
F
5
IOException
8
NumberFormatException
You are not required to catch exceptions that inherit from the RuntimeException class.
T
not including polymorphic references, a try statement may have only one catch clause for each specific type of exception
T
when an exception is throw, the JVM searches the try statement's catch clauses from top top bottom and passes control of the program to the first catch clause with a parameter that is compatible with the exception.
T
10
call stack
13
checked exceptions
3
default exception handler
2
exception handler
9
finally block
7
getMessage
11
printStackTrace
16
serialization
15
throw
4
throwable
1
thrown
14
throws clause
6
try block
12
unchecked exceptions