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

why are extending GenericServlet and why are extending
HttpServlet explain?

Answer Posted / dinesh goud

with out extending those servlets,we have to write all the methods in Servlet interface..............In order to write all the methods in Servlet interface.we go for extending GenericServlet and HttpServlet............

public UserServlet implemetns Servlet
{
provides bodies for all methods;
}
public UserServlet extends GenricServlet
{
provides bodies for methods ur wish and well
}

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I know if java is running on linux?

1114


Explain request dispatcher and its methods.

985


What's the difference between servlets and applets?

1032


What do you mean by session tracking and also explain its techniques?

979


How printwriter is different from servletoutputstream?

999


What is war file?

1088


Why is servlet used?

1162


Is it good idea to create servlet constructor?

1240


Explain the servlet context.

1134


Explain the lifecycle of a servlet?

964


What are the advantages of servlets over traditional cgi?

1091


What do you mean by annotations in servlet?

1056


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1080


When servlet object is created?

1150


How forward () method is different from send redirect () method?

962