Solved

Insert the Missing Code in the Following Code Fragment

Question 6

Multiple Choice

Insert the missing code in the following code fragment.This code is intended to open a file and handle the situation where the file cannot be found. Insert the missing code in the following code fragment.This code is intended to open a file and handle the situation where the file cannot be found.    A) {Scanner in = new Scanner(inputFile) } B) (Scanner in = new Scanner(inputFile) )  C) Scanner in = new Scanner(inputFile) ; D) (FileNotFound exception)


A) {Scanner in = new Scanner(inputFile) }
B) (Scanner in = new Scanner(inputFile) )
C) Scanner in = new Scanner(inputFile) ;
D) (FileNotFound exception)

Correct Answer:

verifed

Verified

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

Related Questions