Solved

Select an Appropriate Expression to Complete the Header for the Method

Question 72

Multiple Choice

Select an appropriate expression to complete the header for the method below. public void openFile(String inputFile) ______________________________
{
File theFile = new File(inputFile) ;
Scanner data = new Scanner(theFile) ;
// additional statements to input data from file
}


A) throw FileNotFoundException
B) throw new FileNotFoundException
C) throws FileNotFoundException
D) throws new FileNotFoundException

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