Multiple Choice
Insert the missing code in the following code fragment.This fragment is intended to read an input file named hoursWorked.txt.You want the program to terminate if the file does not exist.
A) throws FileMissingException
B) catch FileNotFoundException
C) catch FileMissingException
D) throws FileNotFoundException
Correct Answer:

Verified
Correct Answer:
Verified
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
Q69: Which of the following statements about command
Q71: Assuming that inputFile is a Scanner object
Q72: Which method of an exception object will
Q73: You have opened a command prompt window
Q74: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q75: Insert the missing code in the following