Self-Review Exercises
15.1 Determine whether each of the following statements is true or false. If false, explain why.
a) You must explicitly create the stream objects System.in, System.out and System.err.
b) When reading data from a file using class Scanner, if you wish to read data in the file multiple times, the file must be closed and reopened to read from the beginning of the file.
c) Files static method exists receives a Path and determines whether it exists (either as a file or as a directory) on disk
d) Binary files are human readable in a text editor.
e) An absolute path contains all the directories, starting with the root directory, that lead to a specific file or directory.
f) Class Formatter contains method printf, which enables ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access