Sr.Java Web Developer Question: Download Sr.Java Web Developer PDF

Explain me what are the differences between Checked Exception and Unchecked Exception?

Tweet Share WhatsApp

Answer:

Checked Exception:
☛ The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions.
☛ Checked exceptions are checked at compile-time.
☛ Example: IOException, SQLException etc.

Unchecked Exception:
☛ The classes that extend RuntimeException are known as unchecked exceptions.
☛ Unchecked exceptions are not checked at compile-time.
☛ Example: ArithmeticException, NullPointerException etc.

Download Sr.Java Web Developer PDF Read All 64 Sr.Java Web Developer Questions
Previous QuestionNext Question
Tell us what are the common issues you have faced in web applications and how did you resolve them?Explain me how to integrate Spring and Hibernate Frameworks?