Solved

Given the Following Statement, Which Statement Will Write the String

Question 9

Multiple Choice

Given the following statement, which statement will write the string "Calvin" to the file DiskFile.txt?
PrintWriter diskOut = new PrintWriter("DiskFile.txt") ;


A) System.out.println(diskOut, "Calvin") ;
B) PrintWriter.println("Calvin") ;
C) DiskFile.println("Calvin") ;
D) diskOut.println("Calvin") ;

Correct Answer:

verifed

Verified

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

Related Questions