package duixiang; public class test5 { public static void main(String[] args) { try { int i=2/0; } //异常 catch(Exception ex) { System.out.println("异常信息="+ex.getMessage()); } System.out.println("继续运行"); } }