Question: Can you rethrow an exception in Java?Answer: Yes, you can rethrow an exception by using the 'throw' statement without an argument inside a catch block.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: