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) { ... }
Nesta página do site você pode assistir ao vídeo on-line Learn Java Programming - Exceptions: Multi-catch Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Daniel Ross 16 Setembro 2015, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 710 vezes e gostou 4 espectadores. Boa visualização!