How to execute multiple catch blocks for a single try statement in java?
If an exception occurs in try block then the control of execution is passed to the respective catch block. In a program, a single “try” block can have multiple “catch blocks” associated with them.