Exceptions interview questions

15 real Exceptions questions from the Java bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Checked exception?

Junior
  1. A.an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
  2. B.a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
  3. C.a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
  4. D.a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Checked exception — a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
  2. B.Checked exception — an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
  3. C.Checked exception — a clause that always executes after a try whether or not an exception was thrown, used to release resources
  4. D.Checked exception — a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
Reveal the answer + AI explanation — free account

4. What is Unchecked exception?

Junior
  1. A.an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
  2. B.a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
  3. C.a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
  4. D.a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
Reveal the answer + AI explanation — free account

5. Which term means: "a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors"?

Junior
  1. A.Unchecked exception
  2. B.Error
  3. C.Checked exception
  4. D.try-with-resources
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Unchecked exception — a clause that always executes after a try whether or not an exception was thrown, used to release resources
  2. B.Unchecked exception — a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
  3. C.Unchecked exception — a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
  4. D.Unchecked exception — an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
Reveal the answer + AI explanation — free account

7. What is finally block?

Mid
  1. A.an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
  2. B.a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
  3. C.a clause that always executes after a try whether or not an exception was thrown, used to release resources
  4. D.a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.finally block — a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
  2. B.finally block — a clause that always executes after a try whether or not an exception was thrown, used to release resources
  3. C.finally block — a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
  4. D.finally block — a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
Reveal the answer + AI explanation — free account

10. What is try-with-resources?

Mid
  1. A.a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
  2. B.a clause that always executes after a try whether or not an exception was thrown, used to release resources
  3. C.a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
  4. D.a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
Reveal the answer + AI explanation — free account

11. Which term means: "a try statement that declares closeable resources in parentheses and automatically closes them when the block exits"?

Mid
  1. A.Error
  2. B.try-with-resources
  3. C.Unchecked exception
  4. D.Checked exception
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.try-with-resources — a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
  2. B.try-with-resources — a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
  3. C.try-with-resources — an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
  4. D.try-with-resources — a clause that always executes after a try whether or not an exception was thrown, used to release resources
Reveal the answer + AI explanation — free account

13. What is Error?

Mid
  1. A.a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
  2. B.a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
  3. C.a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
  4. D.an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
Reveal the answer + AI explanation — free account

14. Which term means: "a Throwable subclass representing serious problems like running out of memory that applications normally should not catch"?

Mid
  1. A.Error
  2. B.Checked exception
  3. C.finally block
  4. D.try-with-resources
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Error — a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
  2. B.Error — a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
  3. C.Error — a clause that always executes after a try whether or not an exception was thrown, used to release resources
  4. D.Error — an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Exceptions free