//手动抛异常 try { int age = Integer.parseInt("20L"); System.out.println(age); } catch (Exception e) { e.printStackTrace(); }