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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s