posted 21 years ago
1. aMethod() throws exception and is catched AT THE SAME LEVEL so "FileNotFoundException" is written to the console and bMethod() is invoked.
2. bMethod() throws an exception that is NOT CATCHED AT THE SAME LEVEL! => the program ends with an exception.
If you want to correctly catch the exception thrown by bMethod() you must encolse that one in a try catch block. e.g.
try {
bMethod();
} catch (IOException ioe) {
}
Hope it helps,
Miki
Miki<br /> <br />SCJP 1.4, SCBCD 1.3