An try block contains one or more statements that are executed and can potentially throw an exception.
There may be code in a software that we are writing that we believe could throw an exception. For instance, we might be concerned that the code contains a "division by zero" action that will result in an exception.
Keep in mind that if an exception arises at a particular sentence in a try block, the remaining code is not run.
How to control try block?
The control leaves the try block and the program ends abruptly when an exception occurs at a specific statement within the try block. We must "handle" this exception in order to stop the application from ending suddenly. The "catch" keyword is used to handle this. Therefore, a catch block always comes after a try block.
To learn more about Try block from the given link:
https://brainly.com/question/14186450
#SPJ4