The catch block is used as an exception-handler. You enclose the code that you want to monitor inside a try block to handle a run-time error. A try block must have at least one catch block that follows it immediately. The catch clause specifies the exception type that you need to catch.
The catch block resolve the exceptional condition and then continue on as if the error had never happened.
For more information, visit the following link:http://www.roseindia.net/java/exceptions/catching-and-handling-exceptions.shtml