+ 2
Why is chained exception used?
Is chained exception is another method of throwing exception manually. If yes, then can you explain me where it is mostly used
1 Answer
+ 2
if the exception generated must be informed to the parent class we use chaining by throw keyword so that super class can also know some exception generated in its child.