Skip to content
Sharp

Exceptions · interview question

Why is using an empty catch block risky in production code?

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

Correct answer

C. Exceptions might be silently swallowed, masking bugs

Why

An empty catch block is risky because it swallows exceptions without any handling, potentially masking bugs and making debugging difficult.

Test yourself on Exceptions

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

Start free test
All Exceptions questions →