Why does most servlets extend HttpServlet?
Answer Posted / surajkumar.java
Yes, HttpServlet simplifies the handling of HTTP protocol but there is no hard and fast rule that the servlet class must extend abstract HttpServlet class. it may extend GenericServlet class to make the Servlet protocol independent.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Can I have an action without a form?
Is the session factory thread safe?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What do you know about seam?
Why use POJO when I can use hashmap
Difference between loadclass and class.forname?
What restrictions are placed on the location of a package statement within a source code file?
How are the elements of a cardlayout organized?
What is metaspace?
What are the different algorithms used for clustering?
Do I need to import javlang package any time? Why ?
What is the relationship between the canvas class and the graphics class?
What is the difference between RMI and Corba?
Which container method is used to cause a container to be laid out and redisplayed?
Why is string immutable in java?