Checked Exceptions Flashcards

1
Q

Thrown when the clone() method is invoked on an object whose class does not implement a Cloneable interface.

A

CloneNotSupportedException

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

Thrown when an Input/Output operation fails (say because of an interrupted call.)

A

IOException

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

Thrown when end-of-file is reached unexpectedly, subclass of IOException

A

EOFException

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

Thrown when the runtime is not able to locate or open the given file; derived class of IOException.

A

FileNotFoundException

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

Thrown when a reflection operation fails; superclass of reflection related exceptions such as NoSuchMethodException and InvocationTargetException.

A

ReflectiveOperationException

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

Superclass of all unchecked exceptions.

A

RuntimeException

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

Thrown when a database access or related operations fail; superclass of database-related exceptions such as SerialException

A

SQLException

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

Thrown when the parsing fails (for example, while processing locale-sensitive information such as dates and times in the format class.)

A

ParseException

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