05 Exception Handling Flashcards
What exception is used when accessing an invalid index (character) of a string?
StringIndexOutOfBoundsException
Exceptions that occur during execution.
Unchecked exceptions
What exception is used when the class is not found?
ClassNotFoundException
It contains statements which are executed whether or not an exception is thrown.
finally block
Exceptions that occur during compilation.
Checked exceptions
What exception is used when accessing an invalid index of the array?
ArrayIndexOutOfBoundsException
What exception is used when there is an error, such as an integer divided by 0?
Arithmetic Exception
It is created by extending the Exception class.
user-defined exception
There can be multiple catch blocks. True or False?
True
It is the process used to change the normal flow of code of execution if a specifies exception occurs.
Exception handling
It sends an exception out of a block or a method so it can be handled elsewhere.
throw statement
What exception is used when there is an invalid conversion of a string to a numeric format?
NumberFormatException
What exception is used when entering a value that does not match the expected data type?
InputMismatchException
It is a block of code that might throw an exception that can be handles by a matching catch block.
Try block
What exception is used when the access to a class is denied?
IllegalAccessException