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 the uses of servlet and what is servlet chaining?

0 Answers  


What is the difference between forward () and sendredirect () functions in servlet? Explain

0 Answers  


Life Cycle of servlets?

4 Answers   3i Infotech,


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

0 Answers  


What is the purpose of inter-servlet communication?

0 Answers  


Explain session tracking and its importance?

0 Answers  


What is the difference between doGet and doPost?

9 Answers   iGate,


How to make servlet thread safe?

9 Answers   Frisco Tech, InfoVista, WipSys Technologies,


How an Image can be loaded in a Servlet ?

1 Answers  


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

0 Answers  


can we create more than ServletContext and ServletConfig in your application

6 Answers   Patni,


What are life cycle methods of a servlet?

0 Answers  


Categories