title: Which is better to use in professionally (web.xml(Deployment descriptor) or @WebServlet annotation?
body: <p>Earlier servlet version (less than 3.0), we used web.xml file as Deployment descriptor:
  <strong>web.xml</strong></p>
  
  <pre><code>&lt;web-app&gt;  
   &lt;servlet&gt;  
      &lt;servlet-name&gt;WebServlet&lt;/servlet-name&gt;  
      &lt;servlet-class&gt;LoginServlet&lt;/servlet-class&gt;  
    &lt;/servlet&gt;   
  
    &lt;servlet-mapping&gt;  
      &lt;servlet-name&gt;WebServlet&lt;/servlet-name&gt;  
      &lt;url-pattern&gt;/Login&lt;/url-pattern&gt;  
    &lt;/servlet-mapping&gt;   
  
    &lt;welcome-file-list&gt;  
     &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;  
    &lt;/welcome-file-list&gt;  
  &lt;/web-app&gt;    
  </code></pre>
  
  <p>Now with the help of tomcat 7.0 and servlet v3.0, we use @WebServlet annotation.
  E.g:</p>
  
  <pre><code>@WebServlet(
      name = "AnnotatedServlet",
      description = "A sample annotated servlet",
      urlPatterns = {"/Login"}
  )
  public class LoginServlet extends HttpServlet {
      // servlet code here...
  }
  </code></pre>
  
  <p>Now my question is <strong>which is better to use professionally?</strong>
  Need your honest suggestion. 
  Thanks in advance. </p>