Which statement best describes the advantage of using AfterReturning advice, rather than simply using after advice? (Select one)
A) If an exception is thrown in the join point, it is allowed to propagate, which is not the case with After advice
B) AfterReturning advice is invoked if an exception is thrown, which is not the case with After advice
C) After advice can only be applied to methods which are declared as void
D) AfterReturning advice is only invoked if the method returns successfully, allowing you to limit advice to only those scenarios
Correct Answer:
Verified
Q33: Which of the following statements about Pointcut
Q34: Identify the correct statement(s) regarding the <aop:aspectj-autoproxy
Q35: Which of the following statements defines a
Q36: Which of the following statements is NOT
Q37: Identify the correct statement(s) regarding the following
Q39: State which type of object the JdbcTemplate
Q40: Which of the following statements is NOT
Q41: Security filters are used in Spring Security
Q42: @Transactional(timeout=60) public class ClientServiceImpl implements ClientService {
Q43: Assuming a web application context name of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents