NEW
Font size
WorksheetsPreTrainingExceptions
Total questions: 10
Worksheet time: 11mins
What is the root class that all exceptions extend from?
RuntimeException
Exception
IOException
Error
Exceptions can be handled with a structure called a___
Try/Error
Run/Catch
Try/Catch
Run/Fail
____ should be caught and handled,
but you generally shouldn't attempt to catch ____
checked exceptions,
unchecked exceptions
errors,
runtime exceptions
exceptions,
errors
What is an error?
An abnormal condition from outside of the program that halts execution
An abnormal condition that halts the program exclusively during compilation
An abnormal condition that halts the program exclusively while the program is running
Any abnormal condition that halts execution
What is a Checked Exception?
An abnormal condition from outside of the program that halts execution
An abnormal condition that halts the program exclusively during compilation
An abnormal condition that halts the program exclusively while the program is running
Any abnormal condition that halts execution
What is an Unchecked Exception?
An abnormal condition from outside of the program that halts execution
An abnormal condition that halts the program exclusively during compilation
An abnormal condition that halts the program exclusively while the program is running
Any abnormal condition that halts execution
ArrayIndexOutOfBoundsException is an example of a(n) ____
Checked/Compile time Exception
Error
Unchecked/Run time Exception
Stack Overflow is an example of a(n) ____
Checked/Compile time Exception
Error
Unchecked/Run time Exception
When using multiple catch blocks, you should catch exceptions
from most____ to most____
General, Specific
Specific, General
Common, Rare
Lexicographically small,
Lexicographically large
True/False: Running into a lot of exceptions during development means you're a poor developer
True
False
