Which of the following statements about reading and writing text files is correct?
A) You use the Scanner class to read text files and the PrintWriter class to write text files.
B) You use the Scanner class to write text files and the PrintWriter class to read text files.
C) You use the Scanner class to read and write text files.
D) You use the PrintWriter class to read and write text files.
Correct Answer:
Verified
Q8: The PrintWriter class is an enhancement of
Q9: Insert the missing code in the following
Q10: Which of the following statements reflects the
Q11: Consider the following code snippet:
public static void
Q12: Select an expression to complete the following
Q14: Which of the following statements about a
Q15: Which of the following statements about using
Q16: Consider the following code snippet:
File inputFile =
Q17: Insert the missing code in the following
Q18: Which of the following is the correct
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents