public class ExceptionDemo3{
    public static void main(String[] argv) throws Exception{
        //throw new Exception();
        for(int i = 0; i < 3; i++){
            try{
                System.out.println("try");
                if (i == 1)
                    return;
                /*if (i > 0) throw new Exception();*/
            }
            catch(Exception e){
                System.out.println("catch");
                continue; //break;
            }
            finally{
                System.out.println("finally");
            }
            
            /* System.out.println("afterwards"); */
        }
    }
}

