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) throws FileNotFoundException
{
String inputFileName = "dataIn.txt";
String outputFileName = "dataOut.txt";
File inputFile = new File(inputFileName) ;
Scanner in = _______________;
) . .
}
A) new Scanner(inputFileName)
B) new Scanner(outputFileName)
C) new Scanner(inputFile)
D) new Scanner(System.in)
Correct Answer:

Verified
Correct Answer:
Verified
Q46: Insert the missing code in the following
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
Q52: 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
Q106: Which of the following statements about checked