Concept Flow - Try-catch for synchronous errors
Start
Try block runs
Error thrown?
No→Try block ends normally
Yes
Catch block runs
Continue after catch
End
The code inside try runs first. If an error happens, catch runs to handle it. Then code continues after catch.