🔖 오늘 읽은 범위 : QUIZ
**What is better, to throw Exceptions or return error codes? ***
Error Codes
Exceptions
**When should we write try/catch/finally? ***
First, before we write any code.
At the end, when cleaning the code.
**What kind of information should our error messages have? ***
The stack trace only.
The operation that failed, type of failure, more information about the error.
**Why shouldn’t we return ‘null’ from methods/functions? ***
We might forget to check for null and can easily have null pointer exceptions.
The code does not run.
**Is passing ‘null’ as an argument a good practice? ***
Yes
No
**Having dirty tests can be worse than having no tests at all. ***
True
False
**Test code is as important as production code. ***
True
False
**How many concepts should a test function test? ***
Multiple
One
**Should tests depend on each other ***
Yes
No
**What output should a test have? ***
Boolean
None, throw an error.