What are the difference between HttpServlet and
GenericServlets?
Answer Posted / 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 View All Answers
Why jsp is better than servlet?
What’s the difference between sendredirect and forward methods
What are some disadvantages of storing session state in cookies?
Which exception is thrown if servlet is not initialized properly?
How httpservlet is different from the genericservlet?
What is meant by servlet? What are the parameters of the service method?
What do you mean by cgi?
What are its drawbacks of cgi?
Explain the difference between a web server and a web container?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is the inter-servlet communication?
What is meant by a servlet?
What is life cycle of Servlet?
How to notify an object in session when session is invalidated or timed-out?
How do we translate jsp?