Xpode.com        Click here to Print this article.

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

Regards,

Visit for more author’s blog on Java interview questions



http://
http://

Contributed by:
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.

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=560

Click here to go on website