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

Verified
Correct Answer:
Verified
Q72: Which of the following statements about exception
Q73: Consider the following code snippet: Scanner in
Q74: If the current method in a program
Q75: Insert the missing code in the following
Q76: Consider the following code snippet: public double[]
Q78: Consider the following code snippet: Scanner in
Q79: Which of the following statements about a
Q80: Select the missing expression in the code
Q81: Consider the following code snippet: PrintWriter outputFile
Q82: Which of the following statements about the