Spring Certified Professional 2023 · Free Practice Question Medium
Question 5
What is defined as "A predicate that matches join points"
-
A
advice
-
B
pointcut
-
C
join point
-
D
aspect
Reveal correct answer
Correct answer: B
Explanation
Springdoc:
Pointcut: A predicate that matches join points. Advice is associated with a pointcut expression and runs at any join point matched by the pointcut (for example, the execution of a method with a certain name). The concept of join points as matched by pointcut expressions is central to AOP: Spring uses the AspectJ pointcut language by default.
https://docs.spring.io/spring-framework/docs/2.0.x/reference/aop.html#aop-introduction-defn
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
