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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!