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

Which statement defines a pointcut? (Choose the best answer.)

    Correct Answer: B

    A pointcut is defined as an expression that selects one or more join points. This means that pointcuts are used to specify certain points in the program execution where additional behavior (advice) should be applied. Option A describes what a join point is, Option C describes an aspect (not a pointcut), and Option D describes advice.

Discussion
AzuniOption: B

The answer is correct. A is incorrect because it only supports method calls B is correct as it is just an expression to select joints C is incorrect as it doesn't change any behavior D is incorrect as it doesn't execute any code.