Professional Documents
Culture Documents
Jvaa 2056
Jvaa 2056
Answer: unexpected
Exceptions can occur at ___________ time during the execution of a Java program.
Answer: runtime
Answer: Throwable
The catch block is used to ___________ exceptions that are thrown by the preceding try block.
Answer: handle
Answer: always
To throw a custom exception, you can create a new class that extends ___________.
The throws clause is used in a method signature to ___________ that the method may throw certain
exceptions.
Answer: declare
You can use multiple catch blocks to handle ___________ types of exceptions in different ways.
Answer: different
The try-with-resources statement is used for ___________ resources that need to be closed after
use.