why are using HttpServlet in realtime projects and why are
not using Genericservlet
Answer Posted / prakash
Generic servlet is a abstract class which is not
implementing service() method,to serve the client requests
service method has to execute. and also generic servlet is
containing all general statements,and methods which are
changing by protocol wise.
But HttpServlet is a Http protocol specific class,it is also
one abstract class,eventhough all methods got implemented it
is qualified as abstract class to restrict the creation of
objects. Httpservlt class is implementing service() method
to serve the client requests.
so we are using HttpServlet in realtime projects.
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What are common tasks performed by Servlet Container?
What is cookies in servlet with example?
What are the advantages of Servlet over CGI?
What are the steps involved in placing a servlet within a package?
Explain servlet life cycle?
How to get the IP address of client in servlet?
What is http servlet?
What is meant by a servlet?
What's the difference between authentication and authorization?
What are the mechanisms used by a servlet container for maintaining session information?
What is MIME Type?
What exactly are the functions of servlet?
What are the two important api's in for servlets?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
How a servlet is unloaded?