Solved

Which of the Following Statements About Using the PrintWriter Object

Question 15

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents