Multiple Choice
Consider the following code snippet:
PrintWriter out = new PrintWriter("output.txt") ;
If a file named "output.txt" already exists, which of the following statements about the PrintWriter object is correct?
A) An exception will occur.
B) Existing data will be deleted before data are added to the file.
C) A new file named "output_1.txt" will be created and used.
D) Data will be added at the end of the file.
Correct Answer:

Verified
Correct Answer:
Verified
Q30: Which of the following objects should be
Q31: Which of the following statements about using
Q32: Which return value of the JFileChooser object's
Q33: Under which condition will the PrintWriter constructor
Q34: Consider the following code snippet. <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q36: Which of the following patterns should be
Q37: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q38: Insert the missing code in the following
Q39: What is the purpose of the throw
Q40: When writing a method, which of the