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
List the Different types of servlet?
What are the ways to handle multi-threading in servlets?
What are the annotations used in servlet 3?
What are the different types of servlets?
How can we perform any action at the time of deploying the project?
What are the advantages of servlets over traditional cgi?
What are the uses of servlet and what is servlet chaining?
If servlet receives multiple requests, how many objects will it create?
What is the advantage of Servlets when compared with other server side technologies?
What is http servlet in java?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What is servlet container?
The code in a finally clause will never fail to execute, right?
How to upload a file to the server using servlet?
Which java framework is most popular?