Concept Flow - Checked vs unchecked exceptions
Start
Code runs
Exception occurs?
No→Continue normal flow
Yes
Is exception checked?
Yes→Must handle or declare
Handle or declare
Unchecked exception
Can be caught but not required
Program may crash if uncaught
End
The program runs and may throw exceptions. Checked exceptions must be handled or declared, while unchecked exceptions can be caught but are not required to be handled.