logo

Crowdly

What is the output? public class Demo{     void m(){       int x = 50/0; ...

✅ 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{  

  void m(){  

    int x = 50/0;

    System.out.println("1");

  }  

  void n(){  

    m();

    System.out.println("2");

  }  

  void p(){  

   try{  

    n();  

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

  }  

  public static void main(String args[]){  

   Demo obj=new Demo();  

   obj.p();  

   System.out.println("4");  

  }  

}

/**/

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%
100%
0%
0%
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!