nerdexam
Broadcom-VMware

2V0-72.22 · Question #16

Which statement describes the @AfterReturning advice type? (Choose the best answer.)

The correct answer is A. The advice is invoked only if the method returns successfully but not if it throws an exception. See the full explanation below for the reasoning.

Question

Which statement describes the @AfterReturning advice type? (Choose the best answer.)

Options

  • AThe advice is invoked only if the method returns successfully but not if it throws an exception.
  • BThe @AfterReturning advice allows behavior to be added after a method returns even if it
  • CThe advice has complete control over the method invocation; it could even prevent the method
  • DTypically used to prevent any exception, thrown by the advised method, from propagating up

How the community answered

(31 responses)
  • A
    81% (25)
  • B
    10% (3)
  • C
    6% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice