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 send redirect () method?
How many servlet objects are created?
How native code can be used in a servlet?
Can you use javascript in servlets?
What’s the use of the servlet wrapper classes??
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What is ServletConfig object?
How to generate the server side programming and the advantages of it over the other languages?
What is the major difference between servlet and applet?
What is servlet instance?
How can we invoke another servlet in a different application?
Can servlet have a constructor ?
What do you mean by filter in servlet?
What must be implemented by all servlets?
How do I know if java is running on linux?