public method1() throws SQLException {
try {
method2();
} catch (SQLException se) {
System.err.println("HERE A");
} catch (NullPointerException ne) {
System.err.println("HERE B");
}
}
public method2() throws SQLException {
try {
someObj.call();
} catch (SQLException se) {
System.err.println("HERE C");
} catch (IllegalArgumentException ie) {
System.err.println("HERE D");
}
}
如果 someObj.call() throw 左 NullPointerException﹐咁響 standard error 會見到邊句呢 (HERE A, HERE B, HERE C, or HERE D)? 定係會有其他呢?