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 Scanner("dataout.txt")
B) new File("dataout.txt")
C) new PrintWriter("dataout.txt")
D) new PrintStream("dataout.txt")
Correct Answer:

Verified
Correct Answer:
Verified
Q89: Which of the following is the correct
Q90: The PrintWriter class is an enhancement of
Q91: Assume inputFile is a Scanner object used
Q92: Which exception class should you use from
Q93: Your program must read in an existing
Q95: Select an expression to complete the program
Q96: Insert the missing code in the following
Q97: In the hierarchy of Exception classes, the
Q98: Consider the following code snippet, assuming that
Q99: Consider the following code snippet:<br>throw IllegalArgumentException("This operation