The try, catch, and finally keywords are Java keywords
that are used to handle the exception in a program.
The mechanism to handle exceptions in is achieved through the use of the try and catch blocks. Catch block in java language handles only one type of exception however you can use more than one catch clause in a single try block.
Simply an erroneous code (that may cause the exception to occur) is wrapped in the try block. Then it is followed by the multiple catch blocks. And if the exception occurs then this catch block specifies a code that should be executed.
The syntax to use the try, catch and finally block is given
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: June 15, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles