public class ExceptionDemo2{
    public static void func2() throws Exception{
        System.out.println(1);
        throw new Exception();
        /* System.out.println(2); */
    }

    public static void func1() throws Exception{ 
        try{
            func2();
        }
        catch(Exception e){
            System.out.println(3);
        }
        finally{
            System.out.println("finally func1");
        }
        System.out.println(4);
    }
    public static void main(String[] argv){
        try{
            func1();
        }
        catch(Exception e){
            System.out.println(5);
        }
        System.out.println(6);
    }
}
