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
How will you pass values from HTML page to the servlet?
What is context in servlet?
Explain the difference between jsp and servlet?
Describe in brief RequestDespatcher?
What is lazy loading and what is Generic Servlet Class?
What is the difference between the include() and forward() methods?
Why servlet is used as controller ? Not JSP? I want complete explation?
How can we create deadlock situation in servlet?
How can we implement a jsp page?
What are the uses of servlet and what is servlet chaining?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What is the difference between encodeRedirectUrl and encodeURL?
Define servlet mapping?
Explain how to improve Servlet Performance?
What’s the difference between forward() and sendredirect() methods?