Which statements apply to the TRY-ENDTRY construct? (Select 3 correct answers)
A CATCH clause can be used as a handler for several exception classes.
A CLEANUP clause catches remaining exceptions.
All matching CATCH clauses are always executed.
A superclass in a CATCH clause catches exceptions of itself and of its subclasses.
CATCH clauses should be organized ascending from most specific to most general.
Comprehensive and Detailed Explanation from Exact Extract:
A. Valid: A CATCH block can list multiple exception classes separated by |.
B. Wrong: CLEANUP is not a catch mechanism; it executes after try/catch, regardless of exception, but does not handle exceptions.
C. Wrong: Only the first matching CATCH executes, not all.
D. Valid: A superclass exception handler can catch its subclasses.
E. Valid: Best practice is to order CATCH blocks from most specific → most general.
Study Guide Reference: ABAP Keyword Documentation – TRY … CATCH … CLEANUP.
Submit