title: Both @Component and @Named for the same bean class
body: <p>Does a class which will act as a bean in a Spring application require both <code>@Component</code> and <code>@Named</code> at the same time?</p>
  
  <p>What is the significance if both are used so?</p>
  
  <p>I tried searching the net as well as saw the standard documentation of these annotations and found them a bit confusing.</p>
  
  <p>Finally which name is taken by the application if the <code>@Named</code> annotation does not specify any name for the bean?</p>