← All topics
Quiz: Java Exception Handling: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What does this print? (code)
- Q2. Which is a checked exception?
- Q3. What is the difference between throw and throws?
- Q4. Which order of catch blocks compiles?
- Q5. What does try-with-resources guarantee?
- Q6. What does this print? (code)
- Q7. What does this print? (code)
- Q8. Your custom exception extends RuntimeException. What does that mean for callers?
- Q9. When does a finally block NOT run?
- Q10. What does this print? (code)