There will often be occasions where you may need to catch more than one exception. You can have multiple catch statements with each one specifying a single exception class and then a code block for handling the exception. This could lead to a lot of redundant code. With a multi-catch statement you can catch multiple exceptions in the same statement.
A multi-catch statement looks like this:
catch ( NullPointerException | IndexOutOfBoundsException | InvalidArgumentException e) { ... }
On this page of the site you can watch the video online Learn Java Programming - Exceptions: Multi-catch Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Daniel Ross 16 September 2015, share the link with friends and acquaintances, this video has already been watched 710 times on youtube and it was liked by 4 viewers. Enjoy your viewing!