English, asked by ayushmaandey13, 1 year ago

What is the function of catch block in exception handling? where does it appear in the program?
Please answer it fast in simple terms......

Answers

Answered by utkarshsingh275
21

The code in the catch block executes if an exception is throw in the try block. The catch block gives you an opportunity to deal with the problem detected in the try block. Typically the catch block can receive an object that can be used to determine what caused the exception.


utkarshsingh275: bhaiii tum pj ko kyu pareshaan kr rhe ho?
Similar questions