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 / venu bandla

because be extending generic servlet we can access only
common methods of servlet interface,and we fourcefully
access the httpservlet methods by type casting the
servletRequest and ServletResponse objects into
httpServletRequest and HttpServletResponse.so this procedure
is not recommended because of redendent code.so we are
extending the HttpServlet class

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the lifecycle of a servlet?

919


How do you get the ip address of the client in servlet?

957


Differentiate between the web server and application server?

1002


How do you create a cookie using servlet?

1102


What are different methods of session management in servlets?

1220


Write a program to show the functionality of servlets.

973


What do you mean by request dispatcher in servlet? Also explain its methods.

1098


Can filter be used as request or response?

926


Explain the servlet filter.

937


Why servlet is mostly used?

1191


What are the different mode that servlets can be used?

972


What is api in servlet?

974


Explain the methods of request dispatcher in servlet?

996


What are different ways for authentication of servlet?

1022


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

960