Discussion Forum : Aspectj Support And Scripting
Question - Which advice is executed only when joint point returns or throws an exception?
Options:
A .  @Before
B .  @After
C .  @AfterReturning
D .  @AfterThrowing
Answer: Option C


If you would like to perform logging only when a join point returns, you should replace the after advice with an after returning advice.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *