Bad user input, missing files and division by zero happen in real programs. Java separates normal business flow from failure recovery with structured exceptions—checked at compile time when recovery makes sense, or unchecked for programming bugs.
More lessons in Complete Core Java