Sollicitatievraag bij SB3

Is it a good practice to handle exceptions in code?

Antwoord op sollicitatievraag

Anoniem

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