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
Q49: In a catch statement, what does the
Q50: Assume that the classes BlankISBN, NegativePrice, and
Q51: What will be the result of the
Q52: Given the following constructor code, which of
Q53: If you want to append data to
Q54: If the data.dat file does not exist,
Q56: In the following code, assume that inputFile
Q57: The RandomAccessFile class treats a file as
Q58: What will the following code display? String
Q59: If the code in a method can
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