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:

Verified
Correct Answer:
Verified
Q1: Assume that inputFile is a Scanner object
Q3: Insert the missing code in the following
Q4: Consider the following code snippet: try<br>{<br>PrintWriter outputFile
Q5: When writing a method, which of the
Q6: Which of the following statements about exception
Q7: Insert the missing code in the following
Q8: Your program will read in an existing
Q9: Which Java class implements a file dialog
Q10: What is the purpose of the throw
Q11: Consider the following code snippet: Scanner in