Which statements apply to the TRY-ENDTRY construct? (Select 3 correct answers)
Suggested Answer: A, D, E, E
Get Premium C_ABAPD_2507 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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.
15 comments · newest first
LE
Lezlie
11 months ago
CLEANUP catching remaining exceptions? Not sure about that one.
GU
Gussie
11 months ago
Wait, all CATCH clauses are executed? That sounds off.
RA
Rasheeda
11 months ago
Superclass in CATCH catching subclasses? Yup, that's how it works!
CA
Cassi
11 months ago
I totally agree, organizing CATCH clauses is a must!
SH
Shonda
12 months ago
A CATCH clause can handle multiple exceptions, that's true.
KR
Krystina
12 months ago
I’m pretty certain that not all matching CATCH clauses are executed; only the first one that matches gets executed, right?
EM
Emeline
1 year ago
I practiced a question similar to this, and I believe that a superclass in a CATCH clause does catch its subclasses.
TR
Tracey
1 year ago
I think the order of CATCH clauses is important, but I can't recall if it should be from specific to general or the other way around.
CL
Clorinda
1 year ago
I remember that a CATCH clause can handle multiple exceptions, but I'm not sure if it's for several classes or just one.
LE
Lenora
1 year ago
I'm feeling pretty confident about this. The TRY-ENDTRY construct is all about exception handling, and the study guide clearly states the correct answers. I'll select A, D, and E.
VE
Verdell
1 year ago
Okay, I think I've got this. The key is remembering that all matching CATCH clauses are not always executed, and that the CLEANUP clause is for cleanup tasks, not exception handling. I'll focus on A, D, and E for this one.
BO
Bobbye
1 year ago
Hmm, I'm a bit confused about the CLEANUP clause. Does it really catch remaining exceptions? I'll have to double-check that in the study guide.
LI
Linn
1 year ago
I'm pretty sure the answer is A, D, and E. The CATCH clause can handle multiple exception classes, and the superclass in the CATCH clause catches exceptions of itself and its subclasses. Ordering the CATCH blocks from most specific to most general is a best practice.
MA
Maile
1 year ago
A, D, E are correct. Gotta catch 'em all!
MA
Mary
1 year ago
I think A, D, and E are correct.