Exceptions interview questions

15 Exceptions questions from the Java bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "an exception subclass of Exception that the compiler forces a method to either catch or declare with throws"?

Junior
  1. A.Unchecked exception
  2. B.finally block
  3. C.Error
  4. D.Checked exception

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "a clause that always executes after a try whether or not an exception was thrown, used to release resources"?

Mid
  1. A.Error
  2. B.try-with-resources
  3. C.Unchecked exception
  4. D.finally block

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Exceptions question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers