java case

1.

public int getValue() throws Exception {
        try {
            System.out.println("1");
            if (1 ==1) {
                throw new Exception();
            }
            System.out.println("4");
            return 1;
        } catch (Exception e) {
            System.out.println("2");
            //return -1;
            throw e;
        } finally {
            System.out.println("3");
        }
       return 0;
    }

输出什么?程序有错吗?
View Code

 

posted on 2014-03-11 10:12  ukouryou  阅读(102)  评论(0编辑  收藏  举报

导航