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

Which is better jsp or servlet?

976


Which event is fired at the time of project deployment and undeployment?

1260


How do we translate jsp?

989


What is a web application and what is it’s directory structure?

1027


What do you mean by httpservlet?

998


Explain the features are in servlet 3?

1014


Can we use threads in Servlets?

1078


What is servlet and its types?

1001


How will two or three servlets interact or communicate with each other?

1396


Which interface should be implemented by all servlets?

1164


What is Client-Server Computing?

2351


Define declaration.

1020


When to use doget() and when dopost()?

1043


What is http servlet?

1015


What is a servlet context object?

1092