• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Throw in catch block

 
pramod talekar
Ranch Hand
Posts: 366
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Could you please tell me when we can write throw statement in a catch block?


Regards,
Pramod
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's nothing special in a catch block that would restrict you from throwing exceptions in there - exactly the same rules apply as outside a catch block.

Is there something specific, or do you have some example code, to explain why you have this question?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic