Computer Science, asked by nichu2566, 11 months ago

what happens if exception not found in try catch block? Then finally block will be excuted or not

Answers

Answered by rathorehimanshu120
2

Answer:

Catch blocks are skipped. ... If try block fails (exception occurs), control transfers to the catch block where the exception is handled. The remaining code in the try block is never executed. In case a finally block is present, then that is run after the catch block's execution completes.

Similar questions