What are the difference between HttpServlet and
Answers were Sorted based on User's Feedback
Answer / himanshu verma
Generic Servlet is the general class to implement servlets.
it can use any protocol like MIME, SMTP etc. while HTTP
Servlet is specially designed for HTTP protocol.
|Is This Answer Correct ?||2 Yes||0 No|
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
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
|Is This Answer Correct ?||3 Yes||6 No|
What are the uses of servlet
How multiple simultaneous requests can be handled by servlets?
Why servlet is used as controller ? Not JSP? I want complete explation?
What is forward() and include() of servlets RequestDispatcher interface?
How to prevent browser from caching the page content?
What is cookie in servlet?
What are session variable in servlets?
Explain the concept of ssi ?
What is dispatcher servlet?
How many ways are available to ger RequestDispatcher object?
What is servlet interface?
Can you create a deadlock condition on a servlet?