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

What is the advantage of Servlets when compared with other server side technologies?

2393


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

1168


Difference between forward() method and sendredirect() method ?

1087


What is the purpose of requestdispatcher interface?

1138


What's the servlet interface?

1122


why we should override only no-agrs init() method.

1186


What is URL Encoding?

1280


Why servlet is faster than jsp?

1134


Which httpsession object is used to view and manipulate information about a session?

1228


What is java servlet session?

1024


How will you pass values from HTML page to the servlet?

1100


What are different methods of session management in servlets?

1328


What is a deployment descriptor?

1156


How to get the IP address of client in servlet?

1134


How to commuincate between an applet and a servlet?

1102