运行以下程序时,控制台上输出什么? public class Test { public static void main(String[] args) { try { p(); System.out.println("After the method call"); } catch (RuntimeException ex) { System.out.println("RuntimeException"); } catch (Exception ex) { System.out.println("Exception"); } } static void p() throws Exception { try { String s = "5.6"; Integer.parseInt(s); // Cause a NumberFormatException int i = 0; int y = 2 / i; System.out.println("Welcome to Java"); } c
A.输出两次 RuntimeException
B.输出两次Exception.
C.输出 RuntimeException 和 After the method call.
D.输出Exception 和 RuntimeException.