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

What are the difference between HttpServlet and
GenericServlets?

Answer Posted / niranjanravi

The diff is that inGeneracicServlet we had to implement the
service()method the GenericServlets service() method is
declared as abstract.But the Generic Servlet is not
implementing keeping the HttpSErvers in mind. Methods we
have in this class are
init()
log()
service()
While implementing the HTTP Servlet the service() method is
already implemented .service()method of HTTP sevlet is
declared as protected.the HTTPServlet is implementing
keeping the HttpSErvers in mind. Methods we have in this
class are
doGet(),doDelete(),doPost()

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Request Dispatcher?

1508


What do you mean by cgi in servlet?

1125


Differentiate between the print writer and servlet output stream?

1034


How can we achieve transport layer security for our web application?

1098


Is java servlet still used?

1083


What is the major difference between context parameter and context attribute?

1163


How we can create war file in servlet?

1182


Why do we need a constructor in a servlet if we use the init method?

1096


What is difference between GenericServlet and HttpServlet?

1272


What are the advantages of Servlet over CGI?

1199


What is ServletContext object?

1150


Can we use threads in Servlets?

1190


Explain the difference between servletconfig and servletcontext in servlet?

1091


How do you find out what client machine is making a request to your servlet

1103


What is http servlet?

1101