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
Where we can write Rmi registry in the code, without having to write it at the command prompt?
Explain what is orm?
Explain RMI Architecture?
What is abstract schema?
What is the difference between static and non-static with examples?
What is the difference between ear, jar and war file?
What are the benefits of detached objects?
Do you think that java should have had pointers?
which type of objects reference will be given to client?
what is meant by JRMP?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What is mdb and what is the special feature of that?
How messaging services are done, before release of JMS?
How many times may an objects finalize() method be invoked by the garbage collector?
When is the best time to validate input?