Question: Predict the output class Test extends Exception {} class Main { public static void main(String args []) { try { throw new Test () ;
Predict the output class Test extends Exception \{\} class Main \{ public static void main(String args []) \{ try \{ throw new Test () ; \} catch( Test t){ System. Wut. println ("Got the Test Exception"); \} finally \{ System. out. println("Inside finally block "); Got the Test Exception Got the Test Exception Inside finally block inside finally block Compiler Error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
