Exception Handling

29. Program

//Find what it gives ?

Compiletion Error / Compiletion Successfully / Run Time Error / Output class M { public static void main(String[] args) { System.out.println(1); try { } catch(ClassNotFoundException ex) { } } static void test() throws ClassNotFoundException { } }

30. Program

//Find what it gives ?

Compiletion Error / Compiletion Successfully / Run Time Error / Output class N { public static void main(String[] args) { System.out.println(1); try { test(); } catch(ClassNotFoundException ex) { } } static void test() throws ClassNotFoundException { } }

31. Program

//Find what it gives ?

Compiletion Error / Compiletion Successfully / Run Time Error / Output class R { R() throws ClassNotFoundException { System.out.println(1); } public static void main(String[] args) { try { R r1 = new R(); } catch(ClassNotFoundException ex) { } } static void test() throws ClassNotFoundException { R r1 = new R(); } }

32. Program

//Find what it gives ?

Compiletion Error / Compiletion Successfully / Run Time Error / Output class S { S() throws ClassNotFoundException { System.out.println(1); } } class T extends S { T() throws ClassNotFoundException { } }

Page....