Suppose that statement2 causes an exception in the following statement:
try {
statement1;
statement2;
statement3;
}
catch (Exception1 ex1) {
}
catch (Exception2 ex2) {
throw ex2;
}
finally {
statement4;
}
statement5;
Answer the following questions:
■ If no exception occurs, will statement4 be executed, and will statement5 be executed?
■ If the exception is of type Exception1, will statement4 be executed, and will statement5 be executed?
■ If the exception is of type Exception2, will statement4 be executed, and will statement5 be executed?
■ If the exception is not Exception1 nor Exception2, will statement4 be executed, and will statement5 be executed?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.