Under Windows, which of the following statements will open the file InputFile.txt that is in the root directory on the C: drive?
A) FileReader freader = new FileReader("C:\InputFile.txt") ;
B) FileReader freader = new FileReader("C:\InputFile\txt") ;
C) FileReader freader = new FileReader("/c/InputFile.txt") ;
D) FileReader freader = new FileReader("C:\\InputFile.txt") ;
Correct Answer:
Verified
Q20: The exception classes are in packages in
Q21: In order for an object to be
Q22: If, within one try statement you want
Q23: To serialize an object and write it
Q24: When you write a method that throws
Q26: Assume that the classes BlankISBN, NegativePrice, and
Q27: If a method does not handle a
Q28: This is a section of code that
Q29: Unchecked exceptions are those that inherit from:
A)
Q30: Look at the following code: FileInputStream fstream
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