Which three actions represent best practices when implementing an exception handling strategy
for an application?
A.
Create a custom checked exception if an alternative action can be taken to resolve the
exception.
B.
Create a custom unchecked exception if the action to resolve the exception cannot be defined.
C.
Always log the specific exception before re-throwing a wrapped exception.
D.
Always throw exceptions in methods that are designed for exception handling.
E.
Always include information specific to the error when logging an exception.
Explanation:
C is not right, always log the exception or throw it, but never both.
So what is the third good answer?
ADE
ABE
ABE
Exaplanation:
1) A is correct because Checked Exceptions should be used when you want to force the user of your API to think how to handle the recoverable exceptional situation.
2) B and E is correct
https://stackoverflow.com/questions/3551221/guidelines-on-exception-propagation-in-java/3551470#3551470