What does the following statement do?
Scanner scanner = new Scanner(Paths.get("test.txt") ) ;
A) Opens a binary file for input.
B) Opens a binary file for output.
C) Opens a text file for input.
D) Opens a text file for output.
Correct Answer:
Verified
Q10: Files static method _ receives a Path
Q11: How do methods setIn, setOut and setErr
Q12: A(n) _ path starts from the directory
Q13: Class _ provides static methods for common
Q14: Which of the following statements is false?
A)
Q16: A serialized object is _.
A) an object
Q17: The annotation _ indicates that a private
Q18: Which of the following classes is not
Q19: Records in a sequential file are not
Q20: Streams that input bytes from and output
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