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

How will you pass values from HTML page to the servlet?

1053


What is context in servlet?

1042


Explain the difference between jsp and servlet?

1088


Describe in brief RequestDespatcher?

1139


What is lazy loading and what is Generic Servlet Class?

1083


What is the difference between the include() and forward() methods?

1084


Why servlet is used as controller ? Not JSP? I want complete explation?

1136


How can we create deadlock situation in servlet?

1433


How can we implement a jsp page?

1138


What are the uses of servlet and what is servlet chaining?

1095


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1146


What is the difference between encodeRedirectUrl and encodeURL?

1119


Define servlet mapping?

1168


Explain how to improve Servlet Performance?

1146


What’s the difference between forward() and sendredirect() methods?

1017