Question: try { statement 1 ; statement 2 ; statement 3 ; } catch ( Exception 1 ex 1 ) { } catch ( Exception 2

try {
statement1;
statement2;
statement3;
}
catch (Exception1 ex1){
}
catch (Exception2 ex2){
}
statement;
}
}
Answer the following questions:
Will statement be executed?
If the exception is not caught, will statement be executed?
If the exception is caught in the catch block, will statement be executed?

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!