Unit 6 Quiz Flashcards
To provide a generic catch block, define a catch block with an exception type parameter.
T or F
True
A ________ is a listing of the methods that were called prior to a program crashing, but in reverse order.
Call stack trace
A program is _____ if it’s able to support larger or smaller amounts of data and more or fewer users.
Scalable
If you handle an exception with a throws clause, and you need to provide clean up code regardless of whether an exception is thrown, use a finally block.
T or F
True
______ exceptions are descendants of the RuntimeException class.
Unchecked
A ________ is an event that disrupts the normal flow of instructions during the execution of a program.
Exception
When the JVM throws an exception, the JVM looks for a matching catch block.
T or F
True
__________ must be checked with a try-catch mechanism.
Checked Exception
If a code fragment has the potential of throwing a checked exception, the compiler will not force you to associate that code fragment with a try-catch mechanism.
T or F
False
If an exception is thrown, the JVM jumps out of the current try block.
T or F
True