Which of the following statements about reading and writing text files is correct?
A) You use the Scanner class to read and write text files.
B) You use the PrintWriter class to read and write text files.
C) You use the Scanner class to read text files and the PrintWriter class to write text files.
D) You use the Scanner class to write text files and the PrintWriter class to read text files.
Correct Answer:
Verified
Q7: Which of the following statements reflects the
Q8: Insert the missing code in the following
Q9: Which of the following is the correct
Q10: Insert the missing code in the following
Q11: Which of the following objects should be
Q13: Insert the missing code in the following
Q14: Under which condition will the PrintWriter constructor
Q15: Consider the following code snippet: public static
Q16: The PrintWriter class is an enhancement of
Q17: Insert the missing code in the following
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