Answer:
thats what i was about to ask. im not sure
Explanation:
sorry '-'
I’m pretty sure the answer is true
Answer:
The main method should simply terminate if the FileNotFoundException occurs.
Explanation:
Considering the full code snippet
snippet:public static void main(String[] args) throws FileNotFoundException
public static void main(String[])
represent the entry point method to a java main method
The addition of
throws FileNotFoundException
widens the scope of the main method to explicitly specifies that an exception named the FileNotFoundException may be thrown.
So, if any part of the code explicitly throws the FileNotFoundException the compiler makes use of this to throw an exception.
By throwing an exception, the main method is not catching any exceptions, instead it handles the FileNotFoundException by throwing it to the source which invoked the main method
This is required by the compiler to terminate the program if the FileNotFoundException occurs.