Solved

In Windows, Which of the Following Statements Will Open the File

Question 26

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions