ContactUs :

Please send your Questions & Answers or Feedback to ""

What is multi-catch block in java?

Java 7 one of the improvement was multi-catch block where we can catch multiple exceptions in a single catch block. This makes are code shorter and cleaner when every catch block has similar code.

If a catch block handles multiple exception, you can separate them using a pipe (|) and in this case exception parameter (ex) is final, so you can’t change it.

Read more at Java multi catch block.
Related Posts Plugin for WordPress, Blogger...
Flag Counter