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

How to determine SGA site?

1912


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

587


Why use POJO when I can use hashmap

2049


Explain the different types of memory used by jvm?

614


What are the different class loaders used by jvm?

604






What is glasgow?

589


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

574


What is ioc concept & explain it?

623


What is the difference between java class and bean?

585


How would you reatach detached objects to a session when the same object has already been loaded into the session?

688


What is the difference between RMI registry and OS Agent?

634


How a component can be placed on Windows?

2268


What are the different methods of identifying an object?

581


What value does readline() return when it has reached the end of a file?

598


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

1930