Question d’entretien chez SB3

Is it a good practice to handle exceptions in code?

Réponse à la question d'entretien

Utilisateur anonyme

28 juil. 2017

Yes, you must handle exceptions in code so that you can deal with any unexpected situations that occur when a program is running. For example, dividing a number by zero or passing a string value to a variable that holds an integer value would result in an exception.