can we override service method in my servlet class..?? if
yes or no why ??

Answer Posted / manidhar

NO. Very unlikely.
You should NOT override the service()method. Your job is to
override the doGet()/doPost() methods and let the service()
implementaion form HTTPServlet worry about calling the
right one.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cgi and what are its drawbacks?

543


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

540


What are advantages of servlets over cgi?

619


How can you start a jta transaction from a servlet deployed on jboss?

668


Tell us something about servletconfig interface.

574






What is the use of send redirect () method?

583


Write all the phases defined in servlet life cycle?

579


What is the purpose of requestdispatcher interface?

607


What do you mean by mime type?

544


What are the steps that are required to handle the multi-threading?

589


How can you use a servlet to generate a plain text instead of html?

581


How can we implement a jsp page?

621


How does java thread pool work?

540


How to generate the server side programming and the advantages of it over the other languages?

554


How do you find out what client machine is making a request to your servlet

524