Multiple Choice
Assuming that inputFile references a Scanner object that was used to open a file, which of the following statements will read an int from the file?
A) int number = inputFile.nextInt() ;
B) int number = inputFile.next() ;
C) int number = inputFile.readInt() ;
D) int number = inputFile.integer() ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q16: What will be the values of x
Q17: Each repetition of a loop is known
Q18: How many times will the following for
Q19: In the following code, what values could
Q22: If you are using a block of
Q23: This is a value that signals when
Q24: The do-while loop must be terminated with
Q24: A for loop normally performs which of
Q26: A sentinel value _ and signals that
Q38: What will be the value of x