Exam 2v0-7222 All QuestionsBrowse all questions from this exam
Question 67

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

    Correct Answer: B, D

    In Spring AOP, a join point represents a point during the execution of a program, such as the execution of a method or the access to a property. Examples of cross-cutting concerns include security, caching, and transaction management, which are common areas where aspects are used to encapsulate behavior that cuts across multiple types and objects.

Discussion
2211094Options: BD

@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

2211094Options: BD

BD are correct answers for this. because A and other options are totally wrong.