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 / 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


Please Help Members By Posting Answers For Below Questions

What is cookie in servlet?

1121


What is called Session Tracking?

1252


Is dispatcher servlet a singleton?

1074


What is servlet and its life cycle?

1171


What are common tasks performed by Servlet Container?

1315


Can a jsp be called using a servlet?

1203


What is a deployment descriptor?

1158


How do we translate jsp?

1111


How would you create deadlock on your servlet?

1226


Why is a constructor needed in a servlet even if we use the init method?

1213


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

1093


How servlets are deployed in java?

1073


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

1157


What is meant by cookies?

1136


What is the use of servlet wrapper classes?

1242