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 layer in communication?

654


What is jdbc and odbc?

700


What is 2 phase commit?

856


Can resultset be null in java?

691


What is represented by the connection object?

780


What is the execute method in java?

753


What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?

703


What are the common jdbc exceptions?

723


What is jdbc driver for sql server?

718


What are the conditions applies to varchar variable, when using in procedures?

1858


What is the most common example type 1 driver?

788


What is sqlwarning?

764


What are the steps to connect to a database in java?

700


Which is better odbc or jdbc?

677


What does the jdbc driver interface do?

742