Why does most servlets extend HttpServlet?

Answer Posted / dhiraj

All servlet classes extend the HttpServlet abstract class.
HttpServlet simplifies writing HTTP servlets by providing a
framework for handling the HTTP protocol. Because
HttpServlet is abstract, your servlet class must extend it
and override at least one of its methods. An abstract class
is a class that contains unimplemented methods and cannot be
instantiated itself.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the wait(), notify(), and notifyall() methods?

566


Why do threads block on i/o?

678


How to determine SGA site?

1906


What is the difference between a menuitem and a checkboxmenuitem?

581


What is the relation between the infobus and rmi?

556






Why does the tag url-encode javascript and mailto links?

578


Is there a guarantee of uniqueness for entity beans?

568


What are the call back methods in entity bean?

557


When a thread blocks on i/o?

562


What is an abstract method?

590


Java is fully object oriented languages or not?

538


What are the benefits of detached objects?

582


whats is mean by connectionpooling

1562


Can you control when passivation occurs?

596


What is bean? Where can it be used?

575