Java 7 – multi catch exceptions

Multi Catch Exceptions

In Java 7, multi catch exceptions are introduced. As shown in below highlighted code, catch block can catch FirstException as well as SecondException.

 

 

Leave a Reply

Your email address will not be published.