public class Test1 {
    public static void main(String[] args) {
        int a = 2;
        int b = 0;
        //选择该代码(sout)后 Ctrl + Alt + T 即可选择代码块
        try {
            System.out.println(a/b);
        } catch (Exception e) {
            System.exit(0);//手动结束程序
            throw new RuntimeException(e);//打印错误的栈信息
        } finally {
        }
    }
}
 
                    
                 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号