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?

Answers were Sorted based on User's Feedback



What are the difference between HttpServlet and GenericServlets?..

Answer / himanshu verma

Generic Servlet is the general class to implement servlets.
it can use any protocol like MIME, SMTP etc. while HTTP
Servlet is specially designed for HTTP protocol.

Is This Answer Correct ?    2 Yes 0 No

What are the difference between HttpServlet and GenericServlets?..

Answer / 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

More Servlets Interview Questions

What are important features of Servlet 3?

0 Answers  


What is the role of the webserver?

4 Answers  


What are the phases of the servlet life cycle?

0 Answers  


What are common tasks performed by Servlet Container?

0 Answers  


Why do we have servlet wrapper classes?

0 Answers  


What are all the protocols supported by httpservlet?

0 Answers  


How do u authorize and authenticate without <auth> of web.xml

1 Answers   Bosch,


how this statement works..? public void service(HttpServletRequest request,HttpServletResponse response)

2 Answers   TCS,


Differentiate between the print writer and servlet output stream?

0 Answers  


Difference between web container & web server........... Difference between web server & application server?????????

8 Answers   TCS,


How do you track a user session in servlets?

3 Answers  


Why is a constructor needed in a servlet even if we use the init method?

0 Answers  


Categories