.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Articles >> General >> Post New Resource Bookmark and Share   

 Subscribe to Articles

GenericServlet Vs HttpServlet

Posted By:Abhisek Panda       Posted Date: November 30, 2009    Points: 25    Category: General    URL: http://www.dotnetspark.com  

GenericServlet Vs HttpServlet

          GenericServlet and HttpServlet in Java are both two servlet classes. Generic Servlet implements the Servlet interface and HttpServlet extends GenericServlet.

          GenericServlet is super class of HttpServlet.

          GenericServlet is protocol independent, whereas HttpServlet is protocol dependent.

          GenericServlet is used for small data transfer and HttpServlet is used for huge data transfer.

          In GenericServlet we can't use cookies or HttpSession,i.e, session tracking is not possible.

         HttpServlet overrides doGet() and doPost() methods. GenericServlet overrides service() method.
 Subscribe to Articles


Further Readings:


    No response found. Be the first to respond this post

    Post Comment

    You must Sign In To post reply
    Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

    Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend