posted 19 years ago
In your first example the second throw clause will never be reached, so the compiler will complain about it being unreachable.
However, in the second example, there is a chance of either one of the throw clauses will execute (depends on the result of the expression in the if-stat), so the compiler won�t complain about it.
- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!