posted 21 years ago
(The following examples are derived from Dan�s Study Guide Exams for chapter 5.)
In the first example, how do you know the compiler will report two errors, instead of stopping after the first one?
In the above example, two compiler error occur
: unreported exception java.lang.ClassNotFoundException;
In the above example, only one compiler error occurs
: unreported exception AException; must be caught or declared to be thrown
although there is potentially another compiler error
: exception BException is never thrown in body of corresponding try statement