Multiple Choice
Insert the missing code in the following code fragment. This fragment is intended to read an input file. public static void main(String[] args) __________________
{
String inputFileName = "dataIn.txt";
File inputFile = new File(inputFileName) ;
Scanner in = new Scanner(inputFile) ;
) . .
}
A) extends FileNotFoundException
B) throws FileNotFoundException
C) inherits FileNotFoundException
D) catches FileNotFoundException
Correct Answer:

Verified
Correct Answer:
Verified
Q47: Consider the following code snippet. File inputFile
Q48: Which method of the JFileChooser object will
Q49: Insert the missing code in the following
Q50: In the hierarchy of Exception classes, the
Q51: Insert the missing code in the following
Q54: Consider the following code snippet: Scanner in
Q55: Consider the following code snippet. Scanner in
Q56: Which of the following statements about white
Q66: Your program wishes to open a file
Q106: Which of the following statements about checked