Why Annotation in Java ?

Why Annotations in JAVA

Annotations are generally used to embed in a program data that would otherwise be furnished in a deployment descriptor. With annotations, you put the specification information in your code next to the program element affected. More so it also simplify development by providing a common foundation for the various kinds of components in the Java EE platform.

 

Benefit of Annotations

 

  1. When there is more annotations , there will be less XML deployment configuration
  2. Simplify development
  3. Leads to more Plain Old Java Object ( POJO i.e no inheritance , polymorphism etc)

 

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

Blog at WordPress.com.

Up ↑

%d bloggers like this: