Solved

Select an Expression to Complete the Following Statement, Which Is

Question 94

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions