Kamal Raj
Finally() in Java
3 Answer(s)      2 years and 3 months ago
Posted in : Java Interview Questions

After an exception i excute some statement in Finally block.After Fianally block we can execute statements??? if possible in that place exception came means who'll handle???

View Answers

March 1, 2011 at 3:13 PM


Try { ..... Throw exception1; } Catch(exception1 e) { .... } Finally { try{ }catch(Exeception e){} } ...statement 1.... throws exception2; }

here Statement 1 will excute or not??and who'll handle the exception2....


March 1, 2011 at 3:36 PM


Try{ �� Throw exception ; } Catch(Exception e) { Statement1; } Finally{ Statement2; } Statement3; Throw exception; }

If Catch is entered---only stmt1 and stmt2 If Catch is not entered--- stmt1 and stmt3


March 1, 2011 at 3:36 PM


Try{ �� Throw exception ; } Catch(Exception e) { Statement1; } Finally{ Statement2; } Statement3; Throw exception; }

If Catch is entered---only stmt1 and stmt2
If Catch is not entered--- stmt1 and stmt3









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.