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
What is the difference between ear, jar and war file?
Explain about RMI Architecture?
Difference between DurableSubscription and non- DurableSubscription?
what are the advantages of JTA over JTS?
What is the difference between session and entity beans?
what is handle?
Explain about thread synchronization inside a monitor?
Can constructors be synchronized in java?
What is a class loader?
What do you need to set-up a cluster with jboss?
What are JTA/JTS and how they used by client?
Why doesn’t the focus feature on the tag work in every circumstance?
What is scalable, portability in the view of J2EE?
the same information whether it will connect to the database or it will be used previous information?
Where we can write Rmi registry in the code, without having to write it at the command prompt?