Answer the following statements true (T) or false (F)

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 mul- tiple 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) XML files are not 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 formatted data to be output to the screen or to a file.

a) False. These three streams are created for you when a Java application begins execut-
ing.
b) True.
c) True.
d) False. XML files are both computer and machine readable.
e) True.
f) False. Class Formatter contains method format, which enables formatted data to be
output to the screen or to a file.

Computer Science & Information Technology

You might also like to view...

Match each item with a statement below.

A. A collection of logical and physical volumes contained in a single unit. B. Contains the filename and corresponding inode number. C. The slowest journaling mode. D. Contains all information about a file. E. Contains the boot loader and partition table. F. Only metadata is stored when this journaling mode is used. G. Consists of blocks that store the data in a file. H. The default journaling mode. I. Stores information about the file system.

Computer Science & Information Technology

Describe procedures that should be designed to create automatic backup files. In a paragraph, be sure to consider the pros and cons of these procedures.

What will be an ideal response?

Computer Science & Information Technology