Chapter 11 Flashcards
____________ is lost when a computer loses power.
Volatile storage
A collection of data stores in a nonvolatile device in a computer system is a
File
A complete list of the disk drive plus the hierarchy of directories in which a file resides is its
Path
What does Path p = f.getPath(“C\Java\MyFile.txt”); do?
Creates a Path named p to a FileStream named f
A path that needs no additional information to locate a file is
Absolute path
The Path class getFileName() method returns
The last item in a Path’s list of name elements
File.checkAccess() always returns the same value as
File.exists(file)
You cannot delete a Path
If it represents a directory that is not empty
The data hierarchy occurs in the following order from smallest to largest piece of data
Character, field, record, file
When records are accessed one after the other in the order in which they were stored, their file is being used as a _________ access file.
Sequential
If you fail to close an output file,
You might lose access to the written data
Streams are channels through which _______ flow
bytes
A buffer
Holds bytes that are scheduled for input or output
InputStream is
An abstract class
Java’s print() and println() methods are defined in the ______ class
PrintStream