Chapter 12 Flashcards

1
Q

Absolute file name

A

An absolute filename (or full name) contains a filename with its complete path and drive letter.

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

chained exception

A

Throw new exceptions along with the original exception.

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

checked exception

A

Exceptions other than RuntimeException and Error.

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

declare exception

A

All checked exceptions thrown by the method must be explicitly declared in the method declaration to that the caller of the method is informed of the exception.

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

directory path

A

A path for a directory in the file system.

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

exception

A

An unexpected event indicating that a program has failed in some way. Exceptions are represented by exception objects in Java. Exceptions can be handled in a try-catch block.

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

exception propagation

A

Refers to the mechanism for catching exceptions in a chain of method calls. The exception is propagated through a chain of methods.

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

relative file name

A

Refers to a filename without the full path. Its path is implied in its working directory.

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

throw exception

A

A program that detects an error can create an instance of an appropriate exception type and throw it. This is known as throwing an exception.

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

unchecked exception

A

Instances of RuntimeException and Error.

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