This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
The container calls the service(ServletRequest,ServletResponse) method of HttpServlet and then the service(ServletRequest,ServletResponse) method of HttpServlet calls service(HttpServletRequest,HttpServletResponse) method of the same class,as the service() method is overloaded in HttpServlet class.
As I know above statement is correct.
Why b'coz for non http request logic is provided in service(ServletRequest,ServletResponse) method. Keep in mind that u have to override this method. In this method the container checks if it is http or non-http.If it is http it is forwarded to service HttpServletRequest,HttpServletResponse) method. [ March 05, 2006: Message edited by: Mahendar Reddy ]
SCJP- 98%<br />SCWCD-92%
Joined: Mar 04, 2006
Thanx for reply
But Deshmukh's Book says If you override the service method in your servlet class, you will loose the functionality provided by the HttpServlet class and the doXXX() methods will not be called automatically.In your implementation, you will have to determine the HTTP method used in request and then you will have to call the appropriate doXXX() method yourself.