Can two catch blocks be executed

Q

Can two catch blocks be executed?

✍: Guest

A

No, once the proper catch section is executed the control goes finally to block. So there will not be any scenarios in which multiple catch blocks will be executed.

2007-10-23, 7279👍, 0💬