被采纳的那位有个小错误 public class a{ public static void main(String[] args) { System.out.println("哈"); try{Thread.sleep(1000);}catch(Exception e){System.exit(0);//退出程序} System.out.println("成功了"); }}不处理异常,无法执行