title: Why doGet(), doPost() Methods are "protected"?
body: <p>I'm confused about the access modifier of the <code>doGet()</code>, <code>doPost()</code> and other methods of <code>HttpServlet</code> class.</p>
  
  <p>Why are they <code>protected</code>? </p>
  
  <p>As per my understanding, the <code>protected</code> modifier of <code>doGet()</code> means that a client has to be in the same package (or a child - through inheritance) to access <code>doGet()</code>. So how will the invoking JSP or the container access it?</p>