Multiple Choice
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
Correct Answer:
Verified
Q16: In the following code, assume that inputFile
Q25: A catch clause that uses a parameter
Q37: When an object is serialized, it is
Q41: In a try/catch construct, after the catch
Q46: This is a section of code that
Q47: The throw statement informs the compiler that
Q50: Classes that inherit from the Error class
Q52: If a random access file contains a
Q53: An exception's default error message can be
Q55: In a multi-catch, (introduced in Java 7)