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
Explain the differences between jsp and servlet.
Describe servlet?
How does Cookies work in Servlets?
Which are the different ways you can communicate between servlets?
What is the type of method for sending request from http server?
Where do you define dispatcherservlet?
What are sessions in servlets?
What is the need of session tracking in web application?
How can we create deadlock situation in servlet?
What are the different mode that servlets can be used?
How a servlet is unloaded?
Who is responsible for writing a constructor?
What do you mean by web applications?
What are the differences between servlet context vs servlet config?
What exactly is a servlet?