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
What is the structure of the http response
Can we refresh servlet in client and server side automatically?
Why is init() method is used in servlets?
What exception should be thrown when servlet is not properly initialized?
What are the different ways we can maintain state between requests?
What do you mean by cgi in servlet?
How to get the current httpsession object?
Can we override servlet service method?
What is a servlet context object?
What are the exceptions thrown by servlets? Why?
Can we override destroy method in servlet?
Explain the different ways for servlet authentication?
What is new in ServletRequest interface ? (Servlet 2.4)
What is servlet name in web xml?
If a servlet is not properly initialized, what exception may be thrown?