How many catch blocks can you use with one try block with example?
A try block can have multiple catch blocks, each handling a
different type of exception. Be careful about the order of laying
the exceptions. Using Exception at the top will catch everything
that is derived from it, thereby missing the other specfic
exception catches. And there can also be only one finally
block.