Various possible compile-time errors in exception handling:
1) Exception XXX has already been caught.
2) Unreported exception XXX must be caught or declared to be thrown.
3) Exception XXX is never thrown in the body of the corresponding try statement.
4) Try without a catch or finally.
5) Catch without a try.
6) Finally without a try.
7) Incompatible types.
• Found: test
• Required:java.lang.Throwable;
8) Unreachable statement.
Comments
Post a Comment