Computer Science, asked by geethanjalis167, 1 year ago

What will be the output of the program? public class x { public static void main (string args [] ) { try{ badmethod (); system.out.println("a"); }?

Answers

Answered by softwarecrackerindia
21

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() {}  }  A. AC B. BC C. ACD D. ABCD

Similar questions