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

Verified
Correct Answer:
Verified
Q88: Consider the following code snippet.<br>Scanner inputFile =
Q89: Which of the following is the correct
Q90: The PrintWriter class is an enhancement of
Q91: Assume inputFile is a Scanner object used
Q92: Which exception class should you use from
Q94: Select an expression to complete the following
Q95: Select an expression to complete the program
Q96: Insert the missing code in the following
Q97: In the hierarchy of Exception classes, the
Q98: Consider the following code snippet, assuming that