Skip to content
Sharp

Exceptions · interview question

Which Java feature allows you to handle multiple exception types in a single catch block?

Multiple choiceMediumchapter-6-curatedpremiumexceptionschecked-vs-unchecked-exceptions
Choose one answer
Answer and explanation

Correct answer

B. Multi-catch

Why

The multi-catch feature, introduced in Java 7, allows a single catch block to handle multiple exception types. This reduces code duplication and improves readability when similar handling is required for different exceptions.

Test yourself on Exceptions

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

Start free test
All Exceptions questions →