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
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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
3 months, 3 weeks ago2211094
6 months, 3 weeks ago2211094
7 months, 1 week agoPeit
1 month, 1 week ago