logo

Crowdly

The following code has error(s). public class Demo{     void m(){       th...

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

The following code has error(s).

public class Demo{  

  void m(){  

    throw new java.io.IOException("Exception");

    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"); /**/

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!