Multiple Choice
Consider the following code snippet. File inputFile = new File("dataIn.txt") ;
Scanner in = new Scanner(inputFile) ;
While (in.hasNext() )
{
String input = in.next() ;
}
Which of the following statements about this code is correct?
A) This code will read in a word at a time from the input file.
B) This code will read in the entire input file in one operation.
C) This code will read in a line at a time from the input file.
D) This code will read in a character at a time from the input file.
Correct Answer:

Verified
Correct Answer:
Verified
Q42: Insert the missing code in the following
Q43: Consider the following code snippet: Scanner in
Q44: Consider the following code snippet: try<br>{<br>PrintWriter outputFile
Q45: Insert the missing code in the following
Q46: Insert the missing code in the following
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
Q52: Insert the missing code in the following