Pergunta de entrevista da empresa SB3

Is it a good practice to handle exceptions in code?

Resposta da entrevista

Sigiloso

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