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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly