Q:
When finally block is executed?
Answer
If exception is generated in try and if that exception is not catch by any catch then finally is executed.
If exception is generated in try and if that exception is caught by one of catch statements then also finally is executed.
if no exception is generated then also finally is executed.
View answer
Workspace
Report Error
Discuss