Kamal Raj
Finally() in Java
1 Answer(s)      4 years and 4 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???

Advertisement
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.









Related Tutorials/Questions & Answers: