πŸ€” No result found

πŸ‘‰ Don't loose hope, Try out below methods

Ask on Telegram
  • πŸ’‘ Search Tips
  • ➑️ Type question from start
  • ➑️ Use unique words from question
  • ❌ Don't search full question
Telegram Group πŸ”₯πŸ”₯πŸ”₯ Get answers in minutes
Questions answered : 48 /50
Guy
Guy
Guy
Guy
Guy
+ 4981 more
Verified Answer verified

What will be the output of the program
class Exc0 extends Exception { }
class Exc1 extends Exc0 { } /* Line 2 */
public class Test
{
public static void main(String args[])
{
try
{
throw new Exc1(); /* Line 9 */
}
catch (Exc0 e0) /* Line 11 */
{
System.out.println("Ex0 caught");
}
catch (Exception e)
{
System.out.println("exception caught");
}
}
}

πŸ—“ Jun 29, 2021

Comments and Discussions

You don't need to login to post your comment

Comments:
30
Views:
60k
Likes:
120k
votes
Anonymous 🌐 India
answer:Ex0 caught
Was this answer helpful?

Was your question answered?

Thanks for the feedback! βœ…

Want to get famous? πŸ“Έ

Answer question and get 🀩 high-lighted on our homepage.

Just Automated Logo

Β© 2017-2022 Foxoyoβ„’
All rights reserved.

Facebook Connect with us