Sr.Java Web Developer Question:
Download Job Interview Questions and Answers PDF
Explain me what are the differences between Checked Exception and Unchecked Exception?
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.
☛ 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 Interview Questions And Answers
PDF
Previous Question | Next 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? |