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
How do you design microservices?
Name the packages that work with servlet?
What are the jobs performed by servlets?
What is the difference between portlet and servlet?
request parameter how to find whether a parameter exists in the request object?
What are its drawbacks of cgi?
What is servlet container. how it works?
What are the disadvantages of storing session state in cookies?
Can we use threads in Servlets?
What methods do you use in servlet - applet communication?
Can servlet have a constructor ?
Explain the features are in servlet 3?
Explain the servlet filter.
What is the difference between encodeRedirectUrl and encodeURL?
What does the term localization refer to?