Try...catch block help to handle the exception handling, try..catch block works together. You use the catch statement to define a block of code that will execute if an exception to the normal running of the code occurs in the block of code defined by the try statement. Exception means a circumstance that is extraordinary and unpredictable. If you compare with an error, which is something in the code that has been written incorrectly. If no exception occurs, the code inside the catch statement will never execute.
Posted on: November 7, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles