+ 3

Yes! We can handle exceptional situation by using conditional statement then what's the reason behind using try, catch block?

Almost in every programming languages.

15th Jun 2018, 9:24 AM
💫...MayurK Koli...💫
💫...MayurK Koli...💫 - avatar
2 Respuestas
+ 5
You can handle multiple exceptions within a try-catch block instead of writing conditional statements everywhere and end up with poor readability.
15th Jun 2018, 10:19 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
ohh thanks for your help i got 1 solid reason .
15th Jun 2018, 10:37 AM
💫...MayurK Koli...💫
💫...MayurK Koli...💫 - avatar