class MyException1 extends Exception { } // 1 class MyException2 extends RuntimeException { } // 2 class A { void m1() { throw new MyException1(); } // 3 void m2() { throw new MyException2(); } // 4 }
Login in to like
Login in to comment
or Read more about Java Quizzes
Login in to like
Login in to comment