Which three actions represent best practices when implementing an exception handling
strategy for an application?
A.
Create a custom unchecked exception if the action to resolve the exception cannot be
defined.
B.
Always include information specific to the error when logging an exception.
C.
Always log the specific exception before re-throwing a wrapped exception.
D.
Create a custom checked exception if an alternative action can be taken to resolve the
exception.
E.
Always throw exceptions in methods that are designed for exception handling.
Correct Ans : ABD
C is not correct – (Point #8 ) https://stackify.com/best-practices-exceptions-java/ – Don’t log and throw
E – not necessary to throw exception always