Self-Review Exercises
17.1
Determine whether each of the following statements is true or false. If false, explain why.
-
You must explicitly create the stream objects
System.in
,System.out
andSystem.err
. -
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. -
Method
exists
of classFile
returnstrue
if the name specified as the argument to theFile
constructor is a file or directory in the specified path. -
Binary files are human readable in a text editor.
-
An absolute path contains all the directories, starting with the root directory, that lead to a specific file or directory.
-
Class
Formatter ...
Get Java How to Program (early objects), 9/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.