Concept Flow - Try–catch block
Start
Try block runs
Error?
No→Try block ends normally
|Yes
Catch block runs
Continue after catch
End
The program tries to run code inside the try block. If an error happens, it jumps to the catch block to handle it, then continues.