Difference between Generic Servlet and HTTP Servlet?

Answer Posted / ankit sinhal

GenericServlet is might not used be for the http services and may be used for the FTP services , and it is protocol independant where as HttpServlet is Protocol dependant.In GenericServlets you cannot use Cookies or HttpSession.Session tracking is not possible, redirection is not possible. Http servlets overrides doGet and doPost methods. Generic servlet overides service method. Generic servlet is used for small data transfer whereas HttpServlet is used for huge data transfer.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jdbc and jdbc drivers?

502


Is jdbc object oriented?

498


What are the different types of statements? How we can you use preparedstatement.

509


What is com mysql jdbc driver?

498


Which interface handles transaction management in jdbc?

566






Prepared statements are faster. Why?

606


What are the benefits of PreparedStatement over Statement?

526


Why we use while rs next ())?

525


password, is stored in as plain text. What can I do to protect my passwords?

514


What is jdbc odbc driver?

571


What is jdbc architecture in java?

472


What is odbc. how is it related to sql cli?

600


How do I know which jdbc driver to use?

596


What should be done for auto generating primary key id in a table ?

526


How can I instantiate and load a new CachedRowSet object from a non-JDBC source?

532