|
Erstellt von alim586
vor etwa 9 Jahre
|
|
All types of exception are subclass of ...
The ... block executes regardless of whether the ... block throws an ...
true or false
for the try block, you can define only single catch block, and multiple finally blocks
A finally block is used to define ... code - code that closes and releases resources, such as file handlers and database or network connection
Is it possible to define a finally block before a catch block ?
if a catch block returns a primitive data type, the finally block ... modify the value being returned
if a catch block returns an object, the finally block ... modify the value being returned
Can an exception or error be rethrowen?
True or false
Unhandled exceptions thrown by an inner exception handler are passed on to the outer try-catch block to handle
Exceptions can be divided into three categorie
What is a checked exception ?
A checked exception is s subclass of ...
What is a runtime exception?
A Unchecked exception is a subclass of ..
Is a runtime exception a part of the method signature?
what's an error?
An error is a subclass of class ...
Does an error need to be a part of a method signature?
Can you catch an Error?
java.lang.ArrayIndexOutOfBoundsException
is a..
Thrown when ..
java.lang.IndexOutOfBoundsException
is a..
Thrown when..
java.lang.ClassCastException
is a ..
Thrown when ..
java.lang.IllegalArgumentException
is a..
Thrown when ..
java.lang.IllegalStateException
is a ..
Thrown when ..
NullPointerException
is a ..
Thrown when ..
NumberFormatException
is a ..
Thrown when ..
ExceptionInInitializerError
is a ..
Thrown when ..
A ExceptionInInitializerError can only be caused by a ..
Can you throw an unhandled checked exception from a static initializer ?
StackOverflowError
is a ..
Occurs when ..
NoClassDefFoundError
is a ..
Occurs when ..
OutOfMemoryError
is a ..
Occurs when ..