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 are http servlets used in programming?

1058


What are the differences between forward() method and sendredirect() methods?

1078


How does Cookies work in Servlets?

1221


What is preinitialization of a servlet?

1068


What is cgi?

1066


What is difference between GenericServlet and HttpServlet?

1281


Is servlet a server side scripting language?

1188


Can you explain in detail 'javax.servlet' package?

1040


What is cookie in servlet?

1117


What is servletconfig?

1080


What do you mean by filter in servlet?

1061


What are life cycle methods of a servlet?

1111


Explain is servlet mapping?

1059


Write a program to show the functionality of doget and dopost method?

1257


What is the use of servlet context?

1102