This has been possible since Java 7. The syntax for a multi-catch block is: try { ... } catch (IllegalArgumentException | SecurityException | IllegalAccessException ...
-
April 7, 2022
- 0 Comments