Why might it be bad practice to catch Throwable?

Catching Throwable is generally bad practice because Throwable is the root of both Exception and Error, so a catch block for it silently swallows serious JVM-level Errors, like OutOfMemoryError or StackOverflowError, alongside ordinary application exceptions, which a well-behaved application usually shouldn't try to recover from.

Key Points

Example

A service that wraps its whole main loop in catch (Throwable t) might catch an OutOfMemoryError, log it, and keep looping, but the JVM is likely still in a degraded state, so the application keeps failing in confusing ways instead of restarting cleanly.

Interview Tip

A concise interview answer is

Throwable is the superclass of both Exception and Error, so catching it also catches serious JVM-level problems like OutOfMemoryError that an application usually can't safely recover from. I'd catch specific exceptions or Exception at most, and let unrecoverable Errors propagate so the process can fail fast and be restarted rather than continuing in a corrupted state.

Last updated: 16 July 2026

Previous question: What issues might arise when both method overloading and overriding are used in the same class hierarchy?

More Exception Handling interview questions

All Exception Handling questions