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
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
Math,
7 months ago
Physics,
1 year ago
Physics,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago