public class X { public static void main(String [] args) { try { badMethod(); System.out.print(“A”); } catch (Exception ex) { System.out.print(“B”); } finally { System.out.print(“C”); } System.out.print(“D”); } public static void badMethod() { throw new RuntimeException(); } } What is the result? ()
选项:
A:AB
B:BC
C:ABC
D:BCD
E:Compilation fails.
发布时间:2024-04-16 09:59:50