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
原文地址:https://www.cnblogs.com/ukouryou/p/3593306.html