Question: 4 Can we write a method that instead of throwing an exception returns an Exception object permitting caller to react directly and perhaps correct the
Can we write a method that instead of throwing an exception returns an Exception object permitting caller to react directly and perhaps correct the call parameters in place.
Points
No it is impossible.
Yes, we can.
Yes, but the caller of such method must itself throw the exception.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
