What is the difference between checked and unchecked exceptions?

Responsive Ad Header

Question

Grade: Education Subject: Support
What is the difference between checked and unchecked exceptions?
Asked by:
64 Viewed 64 Answers

Answer (64)

Best Answer
(401)
Checked exceptions are exceptions that the compiler forces you to handle (using `try-catch` or `throws` clauses). This is designed to make the program more robust by ensuring that potential errors are addressed. Unchecked exceptions are not checked and can be caught without declaring `throws` clauses. They are generally used for programming errors or unexpected conditions that are not recoverable.