Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     

Java Interview Questions: – 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


Visit for more author’s blog on Java interview questions

Share this article   |    Print    |    Article read by 2805 times
Shivprasad Koirala
We conduct training for Java/J2EE technologies like design patterns, J2EE, Struts, Hibernate, Spring, Rich Interface etc. and likes to write articles on the same in free time.
Related Articles: No related article
Related Interview Questions: No related interview question