Posts

Showing posts from April 12, 2019

How is multiple exception handling done in java? [duplicate]

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } -1 This question already has an answer here: Exception Handling with Multiple catch block [duplicate] 2 answers Can I catch multiple Java exceptions in the same catch clause? 9 answers i have below piece of code which in my spring boot applicatin. This piece of code does email validation, class EmailValidation { public static void validate(List<String> s){ try { for (String address : s) {