What will be the output of the program?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() {} } - Study24x7
Social learning Network
24 Feb 2023 11:42 AM study24x7 study24x7

What will be the output of the program?public class...

See more

A

AC

B

BC

C

ACD

D

ABCD

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles