Question
What deeper point about Checked vs Unchecked Exceptions should a senior Java developer mention?
- At senior level, the right answer is that Checked vs Unchecked Exceptions exists mostly for historical syntax reasons.
- At senior level, the JVM removes the tradeoffs around Checked vs Unchecked Exceptions, so design choices barely matter.
- At senior level, any approach to Checked vs Unchecked Exceptions is equally correct if it compiles and passes a small test.
- Strong exception design follows ownership of recovery and clarity of contracts, not just inheritance categories in the type hierarchy.
Hint
Look beyond syntax and explain the runtime, API, or design consequence.
Answer and rationale
Correct answer: D. Strong exception design follows ownership of recovery and clarity of contracts, not just inheritance categories in the type hierarchy.
Strong exception design follows ownership of recovery and clarity of contracts, not just inheritance categories in the type hierarchy. This is the kind of tradeoff-aware answer senior interviews usually expect.
Track: Java