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
What is the use of java servlet api?
What's the difference between authentication and authorization?
What is the default http method in the servlet?
Who is responsible for writing a constructor?
How do you deal property files in servlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What are the ways to handle multi-threading in servlets?
How do servlets work?
What is ServletConfig object?
Explain the war file?
What is a java servlet?
What are the two important api's in for servlets?
How can the referrer and the target urls be used in servlet?
What is SingleThreadModel interface?
What are the uses of servlets?