Solved

Your Program Wishes to Open a File Named C:\java\myProg\input

Question 33

Multiple Choice

Your program wishes to open a file named C:\java\myProg\input.txt on a Windows system.Which of the following is the correct code to do this?


A) inputFile = new File("c:\java\myProg\input.txt") ;
B) inputFile = new File.open("c:\\java\\myProg\\input.txt") ;
C) inputFile = new File("c:\\java\\myProg\\input.txt") ;
D) inputFile = new File.open("c:\java\myProg\input.txt") ;

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents