What is the functionality of try, catch and finally blocks

Showing Answers 1 - 2 of 2 Answers

Pattukkottai Arun

  • Jul 21st, 2005
 

The simple Try statement comes before the block of code, the Catch block of code is where we specify what type of error to look for, and the Finally block of code is always executed and contains cleanup routines for exception situations. Since the catch block is specific to the type of error we want to catch, we will often use multiple Catch blocks in our Try...Catch...Finally structure.

  Was this answer useful?  Yes

Rajesh Sakhamuri

  • Nov 3rd, 2005
 

try&catch blocks are to get the error description.wothout try block there is no catch.finally contains compalsary statements,to disconnect the database statement.wothout try there is no finally.By RAJESH

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions