Can an exception be rethrown

Yes, an exception can be rethrown.

Showing Answers 1 - 1 of 1 Answers

An exception can be rethrown by using keyword throw.
Example:
try {
// code here that throws an Exception
}
catch (Throwable t) {
throw t; // (re)throw it in their face
}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions