Top 15 Java Exception Handling Interview Question and Answers

Top 15 Java Exception Handling Q & A's
1. What is an exception and an error?
2. What are the advantages of using exception handling?
3. What is the difference between Validation, Exception and Error?
4. What is the difference between checked and unchecked exception handling in Java?
5. Why Runtime Exceptions are Not Checked?
6. Explain try and catch statements in Java ?
7. Can we have a try block without a catch block?
8. What is the purpose of finally block? In which scenario, the code in finally block will not be executed?
9. What are the differences between NoClassDefFoundError and ClassNotFoundException?
10. When do you use a catch block and when do you use a finally block?
11. What is difference between throw and throws in Java?
12. What is the purpose of throw keyword? What happens if we write “throw null;” statement in a Java program?
13. Have you every created custom exceptions?
14. What happens when we have a return statement in the try block as well as in the finally block.?
15. How does finally block differ from finalize() method?

Interviews By Company :

Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email