Skip to content
Sharp

Core Java · interview question

Which of the following is a checked exception?

Multiple choiceMediumchapter-6-curatedpremiumcore-javathrow-throws-and-propagation
Choose one answer
Answer and explanation

Correct answer

A. IOException

Why

IOException is a checked exception, meaning it must be either caught or declared in the method's signature using the 'throws' keyword. This ensures the program handles potential input/output failures.

Test yourself on Core Java

A free test with instant, explained results. No account needed.

Start free test
All Core Java questions →