When there is a request from a client, the
Servlet Container calls
service(ServletRequest req, ServletResponse res) method of HttpServlet class. This method in turn
will call service(HttpServletRequest req, HttpServletResponse res) method of HttpServlet class.
Suppose, we have a user-defined class TestServlet(see code below), which extends HttpServlet, has a method
service(HttpServletRequest req, HttpServletResponse res).
My question is whether service(req,res) method in TestServlet is overriding methodB in HttpServlet class or
an overloading method to the methods methodA and methodB in HttpServlet class?
Any clarification on this matter is appreciated.
Thanks in advance
Thambi