Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

1055


What are the servlet events?

1053


When servlet object is created?

1153


What do you mean by request dispatcher in servlet? Also explain its methods.

1145


What is the use of servlet context?

1037


Why are servlets used?

1033


What is the difference between the servlets and cgi programs?

987


How to rectify errors in java servlet while compilation?

954


What is Servlets and explain the advantages of Servlet life cycle?

1099


Difference between java beans & servlets?

1058


What is the element?

1049


What is setattribute in servlet?

1137


What is servlet and its advantages?

1046


What do you mean by web applications? Explain web application directory arrangement?

958


What is the life cycle of a servlet?

1527