- 次のプログラムをコンパイル・実行するとどうなるか?(実際に実行させずに解答すること)
public class Knock039 {
public static void main(String[] arguments) {
try {
try {
throw new Exception("1st");
} finally {
throw new Exception("2nd");
}
} catch (Exception happened) {
System.out.println(happened.getMessage());
}
}
}