- What is an exception and an error?
- What are the advantages of using exception handling?
- What is the difference between Validation, Exception and Error?
- What is the difference between checked and unchecked exception handling in Java?
- Why Runtime Exceptions are Not Checked?
- Explain try and catch statements in Java ?
- Can we have a try block without a catch block?
- What is the purpose of finally block? In which scenario, the code in finally block will not be executed?
- What are the differences between NoClassDefFoundError and ClassNotFoundException?
- When do you use a catch block and when do you use a finally block?
- What is difference between throw and throws in Java?
- What is the purpose of throw keyword? What happens if we write “throw null;” statement in a Java program?
- Have you every created custom exceptions? Explain the scenario?
- What happens when we have a return statement in the try block as well as in the finally block.?
- How does finally block differ from finalize() method?
Posted in: