Multiple Choice
Given the following statement, which statement will write "Calvin" to the file DiskFile.txt? PrintWriter diskOut = new PrintWriter("DiskFile.txt") ;
A) System.out.println(diskOut, "Calvin") ;
B) DiskFile.println("Calvin") ;
C) PrintWriter.println("Calvin") ;
D) diskOut.println("Calvin") ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q31: This type of loop is ideal in
Q32: The increment operator is:<br>A) ++<br>B) --<br>C) *=<br>D)
Q33: A loop that executes as long as
Q34: A loop that repeats a specific number
Q37: What will be the value of x
Q39: How many times will the following do-while
Q40: This type of loop allows the user
Q42: A file must always be opened before
Q50: When the continue statement is encountered in
Q55: The while loop has two important parts: