Concept Flow - Exception handling flow
Start
Try block begins
Code executes
Exception thrown?
No→Try block ends normally
Yes
Catch block matches exception?
No→Unhandled exception, program terminates
Yes
Catch block executes
Continue after catch
End
The program runs code inside try. If an exception happens, it looks for a matching catch. If found, catch runs; otherwise, program stops.