What is Generic Servlet and how it is different from Http
Servlet?
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 ? | 18 Yes | 4 No |
Post New Answer View All Answers
How can you push data from an Applet to a Servlet?
What is Request Dispatcher?
List some life cycle methods of a servlet.
What is the need of session tracking in web application?
What is servlet in tomcat?
What do you mean by a filter and how does it work?
Explain the steps involved in placing a servlet within a package?
Which http method is said to be non-idempotent and idempotent?
What is url encoding and url decoding
What is difference between cookies and httpsession?
What is the default http method in the servlet?
Define the servlet mapping.
How printwriter is different from servletoutputstream?
What is cookies in servlet with example?
What is war file?