PUB ID

Tuesday, 28 February 2017

Most Tricky Question in Java Exception Handling.Does Finally Block Execute Always?

Does Finally Block Execute Always?

 Answer Is -No
 Finally Block Does Not Execute Always...

in Java is that finally block will execute even if you put a return statement in the try block or catch block but finally block won't run if you call System.exit() from try or catch block.