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

We can override Service method in the servlet when we extend GenericServlet to create servlet as it is mandatory to override it. But when we extend HttpServlet to create a servlet then we cant override service as we need to override doGet or doPost method of HttpServlet

Is This Answer Correct ?    17 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need a constructor in a servlet if we use the init method?

986


Explain the features are in servlet 3?

1014


What are the two important api's in for servlets?

1014


Why servlet is mostly used?

1185


What is dispatcher servlet?

1008


Define the lifecycle for executing a jsp page.

1035


What is url encoding and url decoding

1087


Explain url encoding?

941


What is new in ServletRequest interface ? (Servlet 2.4)

964


Define the life cycle of a servlets.

1005


What is http servlet? Explain with the help of an example.

1013


What do you mean by mime type?

923


What is the workflow of a servlet?

1120


How can the session in servlet be destroyed?

1101


What is string tokenizer?

1029