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

How do you design microservices?

1158


Name the packages that work with servlet?

1062


What are the jobs performed by servlets?

1147


What is the difference between portlet and servlet?

1041


request parameter how to find whether a parameter exists in the request object?

1065


What are its drawbacks of cgi?

1193


What is servlet container. how it works?

1178


What are the disadvantages of storing session state in cookies?

1195


Can we use threads in Servlets?

1193


What methods do you use in servlet - applet communication?

1100


Can servlet have a constructor ?

1101


Explain the features are in servlet 3?

1113


Explain the servlet filter.

1045


What is the difference between encodeRedirectUrl and encodeURL?

1171


What does the term localization refer to?

1188