Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 600 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 600 Bytes

目次 前の問題 次の問題


039:例外(1)

  • 次のプログラムをコンパイル・実行するとどうなるか?(実際に実行させずに解答すること)
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());
        }
    }
}