Ctrl K
Java · Junior · Theory

Tell me about the exception hierarchy in Java. How do checked exceptions differ from unchecked ones?

~4 min by voice

How to approach it

They're checking whether the candidate understands how the Throwable hierarchy is structured and the checked/unchecked difference from the compiler's point of view, and whether they can handle exceptions properly in practice: finally, try-with-resources, catch order, no empty catch blocks.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsHow do you organize exception handling in a Spring application: where do you catch exceptions, and when do you use checked versus unchecked exceptions? Mid-levelHow do you design error handling in a large Java application: where do you use checked exceptions, where unchecked, and how do errors reach the API client? Senior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~4 min