Sail E0 Webinar
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 Solution

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

Latest Videos

Latest Test Papers