| Author |
Throw in catch block
|
pramod talekar
Ranch Hand
Joined: Apr 26, 2010
Posts: 316
|
|
Hi All,
Could you please tell me when we can write throw statement in a catch block?
Regards,
Pramod
|
Thanks,
Pramod
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12950
|
|
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?
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
 |
|
|
subject: Throw in catch block
|
|
|