asked in Exception by (58.6k points)

1 Answer

Experienced java developers must be well versed with this exception interview question.

Features of multi catch syntax in java >

  • Has improved way of catching multip.

  • This syntax does not looks clumsy in java.

  • Reduces developer efforts of writing multiple catch blocks in java.

  • Allows us to catch more than one exception in one catch block.

Here is the multi catch syntax >

             try{

                 //code . . . . .

          }catch(IOException | SQLException ex){

                 //code . . . . .

          }      

answered by (58.6k points)

Java Interview Questions and Answers 2018

>
...