Exceptions in code

Is it a good practice to practise handle the exceptions in code?

E

Expert

Verified

Yes, it is good to handle the exceptions in the code so that you can deal with any of the unexpected situations that may occur while a program is running. For instance, dividing a number by zero or passing a string value to a variable that holds an integer value might results in an exception

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.