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
@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
B is wrong:
https://docs.spring.io/spring-framework/reference/core/aop/ataspectj/advice.html#aop-advice-after-finally
"After advice must be prepared to handle both normal and exception return conditions."
AD is correct
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.
Uteman
9 months ago2211094
1 year ago2211094
1 year agoPeit
6 months, 3 weeks ago