Solved

Which of the Following Statements About Using the PrintWriter Object

Question 3

Multiple Choice

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


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

Correct Answer:

verifed

Verified

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