Tuesday, November 29, 2011

Can we override the service method?

Yes the servlets service method can be overloaded.The Genericservlet service method can be overloaded to support any type of protocol such as Http,Ftp etc.:Actually there are two types of service() methods in a HttpServlet.The code is implemented in such a way that public void service(-,-) method calls protected void service(-,-) inside the protected service method either doGet() or doPost() is called.
Category:Servlet Interview Questions

No comments:

Post a Comment