What is the difference between checked and unchecked exceptions?

Last Updated :
Discuss
Comments

What is the difference between checked and unchecked exceptions?


Checked exceptions occur at runtime, unchecked exceptions occur at compile time


Checked exceptions must be handled or declared, unchecked exceptions don't require handling


Unchecked exceptions are caused by hardware failures, checked exceptions are not


Unchecked exceptions are always thrown by the JVM, checked exceptions are always user-define

Share your thoughts in the comments