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.
You might also like to view...
To what extent can a pie chart be rotated?
A) Up to 180 degrees B) Up to 90 degrees C) Up to 360 degrees D) Up to 45 degrees
Magnetic resonance imaging uses X-rays along with computer algorithms
Indicate whether the statement is true or false