Solved

Which of the Following Statements About Using the PrintWriter Object

Question 44

Multiple Choice

Which of the following statements about using the PrintWriter object is correct?


A) If the output file does not exist, a FileNotFoundException will occur.
B) If the output file already exists, the new data will be appended to the end of the file.
C) If the output file does not exist, an IllegalArgumentException will occur.
D) If the output file already exists, the existing data will be discarded before new data are written into the file.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions