1. Home
  2. Computer Science MCQs
  3. JAVA
  4. Which exceptions must be either caught or declared in a…

Added 2 Nov 2026

Which exceptions must be either caught or declared in a throws clause?

  1. Unchecked exceptions such as NullPointerException
  2. Checked exceptions such as IOException Correct answer
  3. Errors such as OutOfMemoryError
  4. Runtime exceptions such as ArithmeticException

Correct answer

B. Checked exceptions such as IOException

16 views

MCQSEXAM

Explanation

Checked exceptions are verified at compile time, so code must handle them with try/catch or declare them with throws. RuntimeException subclasses and Errors are unchecked.

Reference

Asked in: NTS, OCA Java, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More JAVA MCQs

Practise all JAVA MCQs

Similar MCQs