Question: Consider the following method header void mystery ( String name ) throws FileNotFoundException which of the following statement are true? There must be a statement

Consider the following method header
void mystery(String name) throws FileNotFoundException
which of the following statement are true?
There must be a statement inside the method that may raise a FileNotFoundException.
There must be a throw statement in the mystery method.
Any method that calls mystery method must either use try-catch to handle the FileNotFoundException or use throws to propagate the exception.
FileNotFoundException is an unchecked exception.
Consider the following method header void mystery

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!