Question: 2. What will be the output of the below program? (5 points) public class Ideone ( public static void main(Stringl] args) throws FileNotFoundException, IOException try

2. What will be the output of the below program? (5 points) public class Ideone ( public static void main(Stringl] args) throws FileNotFoundException, IOException try t testException(-5); testException(-10); catch(FileNotFoundException e) printStackTrace0: .printStack Trace0 System.out.println("Releasing resources"); catch(IOException e) finally testException(15); public static void testException int i) throws FileNotFoundException, IOException if i 0) FileNotFoundException myException = new throw myException; throw new IOException "Only supported for index 0 to 10"); FileNotFoundException("Negative Integer "+i); else if(> 10)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
