Showing posts with label ArrayIndexOutOf BoundsException. Show all posts
Showing posts with label ArrayIndexOutOf BoundsException. Show all posts

Wednesday, 22 January 2014

MULTIPLE catch CLAUSES IN JAVA

HANDLING MULTIPLE catch CLAUSES
Java Exception Handling:catching multiple exceptions

The code bound by the try block need not always throw a single exception. If in a try block multiple and varied exceptions are thrown, then you can place multiple catch blocks for the same try block in order to handle all those exceptions. When an exception is thrown it traverses through the catch blocks one by one until a matching catch block is found.