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


Please Help Members By Posting Answers For Below Questions

What are the call back methods in entity bean?

796


Explain RMI Architecture?

839


Which javutil classes and interfaces support event handling?

812


Should synchronization primitives be used on bean methods?

790


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

1838


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

2031


What is the relationship between local interfaces and container-managed relationships?

837


how i secure my site with the https protocol.what are the steps?

1985


Why a component architecture for the java platform?

797


Can I map more than one table in a cmp?

814


What is synchronization and why is it important?

777


what are the activation groupworks?

1883


Explain the steps in details to load the server object dynamically?

4811


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

3864


When a thread blocks on i/o, what state does it enter?

833