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:

Verified
Correct Answer:
Verified
Related Questions
Q4: The variable used to keep a running
Q5: A loop that repeats a specific number
Q6: Which of the following are pre-test loops?<br>A)
Q7: What will be the value of x
Q8: What will be the values of x
Q10: Before entering a loop to compute a
Q11: Select all that apply. Which method of
Q12: A random number, created as an object
Q13: The variable that controls the number of
Q14: In a for loop, the control variable