Skip to content
Sharp

Exceptions · interview question

Which problem arises when a catch block catches exceptions generally using 'Exception e'?

Multiple choiceMediumchapter-6-curatedpremiumexceptionstry-catch-finally
Choose one answer
Answer and explanation

Correct answer

B. It prevents handling specific exceptions effectively

Why

Catching exceptions generally with 'Exception e' can prevent specific handling of different exceptions, leading to less precise error management and harder debugging.

Test yourself on Exceptions

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

Start free test
All Exceptions questions →