Describe the output file used in the TestData program in terms of the classes that were used to create it.

What will be an ideal response?


The output file, as a Java object, is made by combining three classes. It is a FileWriter object, which establishes it as an output file but gives it minimal support for manipulating data. That object is wrapped in a BufferedWriter object, which gives the output stream buffering capabilities. Finally, that object is wrapped in a PrintWriter object, which provides print and println methods for writing data to the stream. The BufferedWriter object is not necessary in this program, but is usually a good idea for efficiency reasons.

Computer Science & Information Technology

You might also like to view...

To move a virtual machine running on VMware to Hyper-V, you perform a _________ to virtual conversion.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You can remove selected text from a slide by pressing the CTRL+X keyboard shortcut keys.

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

Computer Science & Information Technology

Actions can be added to a macro by simply selecting one from the Add New Macro list or by searching the Action Catalog

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ________ in a database can be a data source for a PivotChart

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology