Java Multiple catch blocks

If more than one exception can occur in one try block, then we can use multiple catch blocks to provide appropriate handlers to different exception objects. Note: in case of multiple catch blocks, blocks must be placed from specific handler to general handler.   Syntax of try block with multiple catch blocks: try{ //block of … Read more