Multiple Choice
Consider the following code snippet. Scanner in = new Scanner(. . .) ;
While (in.hasNextLine() )
{
String input = in.nextLine() ;
}
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
Q65: You have opened a command prompt window
Q66: Which of the following statements about reading
Q67: Which of the following objects should be
Q68: Your program must read in an existing
Q69: Consider the following code snippet: try<br>{<br>PrintWriter outFile
Q71: The Scanner class's _ method is used
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