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...

Which of the following sizes is the largest?

A. 24 GB B. 24 MB C. 240 MB D. 2,400 KB

Computer Science & Information Technology

4G will deliver 3 to 20 times the speed of 3G networks for mobile devices.

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

Computer Science & Information Technology

The ________ is a tool that captures the exact color from an object on your screen and then applies to the color to any shape, picture or text

Fill in the blank(s) with correct word

Computer Science & Information Technology

A _____ answers questions, troubleshoots problems, and serves as a clearinghouse for user problems and solutions.

A. user support specialist B. database administrator C. web support specialist D. network administrator

Computer Science & Information Technology