Multiple Choice
Under which condition will the Scanner constructor generate a FileNotFoundException?
A) If the input file already exists, but is empty.
B) If the input file does not exist.
C) If any I/O error occurs while opening the file.
D) If the input file already exists, but has data in it.
Correct Answer:

Verified
Correct Answer:
Verified
Q58: When reading words using a Scanner object's
Q59: Which of the following statements about reading
Q60: Which of the following statements about reading
Q61: When a program throws an exception within
Q62: Which of the following statements about assertions
Q64: Consider the following code snippet. <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q65: Insert the missing code in the following
Q66: Your program wishes to open a file
Q67: An example of a fatal error that
Q68: Insert the missing code in the following