Domanda di colloquio di SB3

Is it a good practice to handle exceptions in code?

Risposta di colloquio

Anonimo

28 lug 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.