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 are the type of protocols used in httpservlet?
Why are http servlets used in programming?
What is meant by session? Tell me something about httpsession class?
What do you mean by request dispatcher in servlet? Also explain its methods.
What are common tasks performed by Servlet Container?
What is the purpose of inter-servlet communication?
How do servlets work?
What is the procedure of invoking different servlet in a different application?
Which method is called when reference variable is passed in system.net?
Why do we need servlet filter?
What is getservletcontext?
What are the advantages of Servlet over CGI?
Differentiate between the web server and application server?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
Is servlet a server side scripting language?