分析异常的printStackTrace()方法的输出
public class Main { public static void main(String[] args) { startProcess(); /* from N o w J a v a . c o m*/ } private static void startProcess() { try { int a = 5 / 0; } catch (Exception e) { e.printStackTrace(); } } }
public class Main { public static void main(String[] args) { startProcess(); /* from N o w J a v a . c o m*/ } private static void startProcess() { try { int a = 5 / 0; } catch (Exception e) { e.printStackTrace(); } } }