exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 46 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 46
Topic #: 1
[All 2V0-72.22 Questions]

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

  • A. The advice is invoked only if the method returns successfully but not if it throws an exception.
  • B. The @AfterReturning advice allows behavior to be added after a method returns even if it throws an exception.
  • C. The advice has complete control over the method invocation; it could even prevent the method from being called at all.
  • D. Typically used to prevent any exception, thrown by the advised method, from propagating up the call-stack.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Azuni
7 months ago
Correct. Refer to class documentation: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/aop/AfterReturningAdvice.html
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago