Multiple Choice
Select an expression to complete the following statement, which is designed to construct a PrintWriter object to write the program output to a file named dataout.txt PrintWriter theFile = _______________________;
A) new PrintStream("dataout.txt")
B) new File("dataout.txt")
C) new PrintWriter("dataout.txt")
D) new Scanner("dataout.txt")
Correct Answer:

Verified
Correct Answer:
Verified
Q99: The PrintWriter class is an enhancement of
Q100: When a program throws an exception within
Q101: Consider the following code snippet: Scanner in
Q102: Consider the following code snippet. PrintWriter outputFile
Q103: When reading words using a Scanner object's
Q104: Select an expression to complete the program
Q105: Which of the following statements about command
Q106: Consider the following code snippet: public void
Q108: Consider the following code snippet: PrintWriter out
Q109: Consider the following code snippet: Scanner in