Exceptions Flashcards
1
Q
Is IllegalAccessException a RuntimeException?
A
No - Most exceptions that begin with Illegal… are a subclass of RuntimeException; this one is not.
This exception is used with reflection.
2
Q
Is IllegalBlockSizeException a RuntimeException?
A
No - Most exceptions that begin with Illegal… are a subclass of RuntimeException; this one is not.
This exception is thrown when the length of data provided to a block cipher is incorrect.
3
Q
Is IllegalClassFormatException a RuntimeException?
A
No - Most exceptions that begin with Illegal… are a subclass of RuntimeException; this one is not.
Thrown by an implementation of ClassFileTransformer.transform when its input parameters are invalid.