Consider the following try/catch block:
try{
statement 1; // may throw Exception1 object
statement 2; // may throw Exception2 object
statement 3; // may throw Exception3 object
}
catch( Exception1 ex1 )
{
.........
}
catch( Exception2 ex2 )
{
............
}
finally
{
statement4;
}
statement5;
(a) Under what circumstances will statement5 be executed?
(b) Under what circumstances will statement4 be executed?
(c) Under what circumstances will statement3 be executed?
I'm revising for my exam and I'm still unclear about some parts here. Hope someone can explain. thanks