Wednesday 29 February 2012

Java Interview Questions: – Can you explain the many types of Advice?

Before advice
  • Advice that executes before a join point
  • does not have the ability to prevent execution flow proceeding to the join point
After returning advice
  • Advice to be executed after a join point completes normally
After throwing advice
  • Advice to be executed if a method exits by throwing an exception
After advice
  • Advice to be executed regardless of the means by which a join point exits
Around advice
  • Advice that surrounds a join point such as a method invocation
  • It is also responsible for choosing whether to proceed to the join point
See the following video on Spring: -



Click for more Java interview questions

Regards,

Visit for more author’s blog on Java interview questions

No comments:

Post a Comment