logo

Crowdly

What is the output? public class Demo{       public static void main(String ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output?

public class Demo{    

  public static void main(String args[]){    

   try{    

    int a[]=new int[5];    

    a[5]=30/0;    

   }    

   catch(Exception e){System.out.println("C1");}    

   catch(ArithmeticException e){System.out.println("C2");}    

   catch(ArrayIndexOutOfBoundsException e){System.out.println("C3");}    

   System.out.println("Output");    

 }    

}

/**/

document.oncopy = new Function("return false");

document.onpaste = new Function("return false");

document.onselectstart = new Function("return false");

document.oncontextmenu = new Function("return false"); /**/

0%
0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on lms.upes.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!