Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 69 discussion

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

Which two statements are true about Spring AOP? (Choose two.)

  • A. The @After advice type is invoked regardless of whether a method successfully returned or an exception was thrown.
  • B. In Spring AOP, a join point represents a method execution or property access.
  • C. Spring AOP does not use AspectJ's pointcut expression language.
  • D. Examples of cross-cutting concerns include security, caching, transaction.
  • E. There are in total 4 types of advice, @Before, @After, @AfterReturning and @AfterThrowing.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Uteman
1 month, 3 weeks ago
B is wrong Join point: A point during the execution of a program, such as the execution of a method or the handling of an exception. In Spring AOP, a join point always represents a method execution. Join point information is available in advice bodies by declaring a parameter of type org.aspectj.lang.JoinPoint
upvoted 1 times
...
2211094
4 months, 3 weeks ago
@After have nothing to do with throwing exceptions, this advise works when advised method returns success(not throwing any exception). There is a special advise which can handle this behavior of returning throwing exception is called @AfterThrowing
upvoted 1 times
...
2211094
5 months, 1 week ago
BD are correct answers for this. because A and other options are totally wrong.
upvoted 2 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 ...