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
Why do we need a constructor in a servlet if we use the init method?
Explain the features are in servlet 3?
What are the two important api's in for servlets?
Why servlet is mostly used?
What is dispatcher servlet?
Define the lifecycle for executing a jsp page.
What is url encoding and url decoding
Explain url encoding?
What is new in ServletRequest interface ? (Servlet 2.4)
Define the life cycle of a servlets.
What is http servlet? Explain with the help of an example.
What do you mean by mime type?
What is the workflow of a servlet?
How can the session in servlet be destroyed?
What is string tokenizer?