Multiple Choice
In 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
Correct Answer:
Verified
Q21: When you deserialize an object using the
Q22: In a multi-catch (introduced in Java 7)
Q23: When an exception is thrown _.<br>A) it
Q24: When an exception is thrown by a
Q25: A catch clause that uses a parameter
Q27: An exception object's default error message can
Q28: What will the following code display? String
Q29: A file that contains raw binary data
Q30: If a random access file contains a
Q31: In versions of Java prior to Java