Multiple Choice
Your program must read in an existing text file. You want the program to terminate if the file does not exist. Which of the following indicates the correct code for the main method header?
A) public static void main(String[] args) throws FileMissingException
B) public static void main(String[] args) throws FileNotFoundException
C) public static void main(String[] args)
D) public static void main(String[] args) throws UnknownFileException
Correct Answer:

Verified
Correct Answer:
Verified
Q31: Which of the following statements about exception
Q32: Insert the missing code in the following
Q33: Consider the following code snippet: throw IllegalStateException("This
Q34: Which String class method will remove spaces
Q35: Insert the missing code in the following
Q37: Which of the following code snippets about
Q38: Consider the following code snippet: try<br>{<br>File inputFile
Q39: Assume that inputFile is a Scanner object
Q40: Which method of an exception object will
Q41: Which return value of the JFileChooser object's