Please clarify my doubt in
servlets, go through the below statements.
Here is the process what I know in servlets,
1.The browser sends a request to the servlet which is called MyServlet extends HttpServlet
2.The server generates request and response objects and sends these objects to the service() method of MyServlet,which contains doPost() but not service().
3.So the requet sends to the service() method of HttpServlet(Super class of MyServlet)
4.Then the service() method internally calls the doGet or doPost() of MyServlet.
Here is my doubt
--->> How the service() method of HttpServlet(Super class) invokes doGet or doPost() of MyServlet(Subclass)???. I think it voilates the inheritance property.
Thanks in advance.
Josweth Reddy