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 mysteryString 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 trycatch to handle the FileNotFoundException or use throws to propagate the exception.
FileNotFoundException is an unchecked exception.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
