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 is the
Explain jsessionid and when is it created?
What are the life-cycle methods for a servlet?
How do you load an image in a Servlet?
What do you mean by httpservlet and how it is different from the genericservlet?
What is Request Dispatcher?
What are the different session tracking techniques?
What is the procedure for initializing a servlet?
Is tomcat a servlet container?
What is SingleThreadModel interface?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What are the mechanisms used by a servlet container for maintaining session information?
What do you mean by servlet?
What do you mean by cgi in servlet?
What do you mean by web applications?