can we override service method in my servlet class..?? if
yes or no why ??
Answer Posted / rajesh
We can override Service method in the servlet when we extend GenericServlet to create servlet as it is mandatory to override it. But when we extend HttpServlet to create a servlet then we cant override service as we need to override doGet or doPost method of HttpServlet
| Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
What is the difference between context parameter and context attribute?
Explain the different ways for servlet authentication?
What is servlet mapping?
What is the purpose of inter-servlet communication?
Explain the difference between servlet and cgi?
Can we override destroy method in servlet?
What are the types of an http request?
Name the packages that work with servlet?
What is dispatcher servlet?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
How to get the actual path of servlet in server?
What are the different session tracking techniques?
Whether we can get deadlock situation in servlets?
What is cgi?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?