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
Which exception is thrown if the servlet is not initialized properly?
What is servlet api used for conneting database?
Why HttpServlet class is declared abstract?
What is the major difference between context parameter and context attribute?
What are the features added in Servlet 2.5?
What are the types of servlets? Explain
What is session tracking?
Which method is called when reference variable is passed in system.net?
Describe servlet?
How to upload a file to the server using servlet?
What are the servlet events?
What is difference between server and servlet?
Explain the difference between servlet and cgi?
How can you use a servlet to generate a plain text instead of html?
What is the workflow of a servlet?