Explain me what are the differences between Checked Exception and Unchecked Exception?
Submitted by: MuhammadChecked 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.
Submitted by: Muhammad
☛ 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.
Submitted by: Muhammad
Read Online Sr.Java Web Developer Job Interview Questions And Answers
Top Sr.Java Web Developer Questions
☺ | Do you know what is composition in Java? |
☺ | Please explain what is the difference between execute, executeQuery, executeUpdate? |
☺ | Tell us what is Hibernate Framework? |
☺ | Tell me what are the different tags provided in JSTL? |
☺ | Tell us what is difference between Error and Exception? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |