Solved

Which Statement Best Describes the Advantage of Using AfterReturning Advice

Question 38

Multiple Choice

Which statement best describes the advantage of using AfterReturning advice, rather than simply using after advice? (Select one)


A) If an exception is thrown in the join point, it is allowed to propagate, which is not the case with After advice
B) AfterReturning advice is invoked if an exception is thrown, which is not the case with After advice
C) After advice can only be applied to methods which are declared as void
D) AfterReturning advice is only invoked if the method returns successfully, allowing you to limit advice to only those scenarios

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents