try with multiple catch blocks
A way of handling an exception is varied from exception to exception hence, for every exception type, it is highly recommended to take separate catch block.
Let's take two examples of try catch.
Bad Or Worst Programming Practice
try
{
Risky Code
}
catch (Exception e)
{
Exception Handling code
}
Best and Recommended Programming Practice