0 votes
in JAVA by
What do you mean by chained exceptions in Java?

i) Exceptions occurred by the VirtualMachineError

ii) An exception caused by other exceptions

iii) Exceptions occur in chains with discarding the debugging information

iv) None of the above

2 Answers

0 votes
by

An exception caused by other exceptions.

Reason: In Java, an exception caused by other exceptions is known as a chained exception. Generally, the first exception causes the second exception. It helps in identifying the cause of the exception. In chained exceptions, the debugging information is not discarded.

Hence, the correct answer is option (ii).

0 votes
by

(b) An exception caused by other exceptions.

Reason: In Java, an exception caused by other exceptions is known as a chained exception. Generally, the first exception causes the second exception. It helps in identifying the cause of the exception. In chained exceptions, the debugging information is not discarded.

Related questions

0 votes
asked Apr 9, 2021 in JAVA by Robindeniel
0 votes
asked Apr 10, 2021 in JAVA by Robindeniel
...