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:

Verified
Correct Answer:
Verified
Q39: What is the purpose of the throw
Q40: When writing a method, which of the
Q41: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q42: Select an expression to complete the program
Q43: Which of the following is the correct
Q45: Assume inputFile is a Scanner object used
Q46: Insert the missing code in the following
Q47: Insert the missing code in the following
Q48: When you start a Java program from
Q49: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"