Chapter 12 Flashcards
Absolute file name
An absolute filename (or full name) contains a filename with its complete path and drive letter.
chained exception
Throw new exceptions along with the original exception.
checked exception
Exceptions other than RuntimeException and Error.
declare exception
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.
directory path
A path for a directory in the file system.
exception
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.
exception propagation
Refers to the mechanism for catching exceptions in a chain of method calls. The exception is propagated through a chain of methods.
relative file name
Refers to a filename without the full path. Its path is implied in its working directory.
throw exception
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.
unchecked exception
Instances of RuntimeException and Error.