Try and catch statement
Introduction to try and catch statement
Try Statement - it is piece of code that need to be tested during the exicutive of code. The block of code is checked if it has any error or not. If any error are encountered, then the Try {} statement passed to the catch {} statement block.
Once the control is handed over the catch block the code block under catch {} will be executed