trycatchfinally

题:

try {
            try {
                System.out.println("A");
                throw new Exception("1");
            }catch (Exception e){
                System.out.println("B");
                throw new Exception("2");
            }finally {
                System.out.println("C");
                throw new Exception("3");
            }
        }catch (Exception e){
            System.out.println(e.getMessage());
        }

运行结果:

posted @ 2020-05-26 23:59  幻影黑子  阅读(98)  评论(0)    收藏  举报