Function f() always throws an exception. But at "Runtime". The compiler has no way to figure that out at compile-time. So, for the compiler if t.f() does not throw an exception, then the catch clause is never executed. So, e1 is never initialized. However finally always is. Hence the problem.
posted 10 years ago
i think it is clear now.
thank you all
SCJP 5, SCJD
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
how do I do my own kindle-like thing - without amazon