Concept Flow - Multiple catch blocks
Try block starts
Code runs
Exception occurs?
No→Try block ends normally
Yes
Check first catch block type
Matches
Run catch
Catch block ends
Continue after try-catch
The program tries code in the try block. If an exception happens, it checks each catch block in order to find a matching type. The first matching catch runs. If none match, the exception is unhandled.