can we override service method in my servlet class..?? if
yes or no why ??
Answer Posted / ruchi
we can override service method in my servlet class if the
request is not protocol dependent.
Bcoz we exdend HttpSrevlet class to handle Http GET and
POST requests and we have to override some methods like
doGet,doPost,doHead,doPut,doDelete.
But if u want to override service method then u have to
extend genricServlet Class.Then only u can implement Service
() method.
| Is This Answer Correct ? | 52 Yes | 8 No |
Post New Answer View All Answers
What is cookie in servlet?
What is called Session Tracking?
Is dispatcher servlet a singleton?
What is servlet and its life cycle?
What are common tasks performed by Servlet Container?
Can a jsp be called using a servlet?
What is a deployment descriptor?
How do we translate jsp?
How would you create deadlock on your servlet?
Why is a constructor needed in a servlet even if we use the init method?
Difference between forward() method and sendredirect() method ?
How servlets are deployed in java?
What are the steps that are required to handle the multi-threading?
What is meant by cookies?
What is the use of servlet wrapper classes?