Which statement defines a pointcut? (Choose the best answer.)
Which statement defines a pointcut? (Choose the best answer.)
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.
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.