Concept Flow - Multiple catch blocks
Try block starts
Code runs
Exception thrown?
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 error happens, it checks each catch block in order to find one matching the error type and runs it.