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 do you understand by DDL and DML statements?

722


How can we retrieve data from the resultset?

759


Is jdbc faster than hibernate?

787


What is a jdbc connection string?

670


How do I load a database driver with JDBC 4.0 / Java 6?

784


Is jdbc object oriented?

721


How can you load the drivers?

762


What are the higher level apis under development on top of jdbc currently?

727


Why hibernate is better than jdbc?

718


What is ojvm used for?

769


What do you mean by batch processing in jdbc?

806


State the different connection methods used for creating different types of sql.

781


Can I get a null resultset?

752


What is statement and preparedstatement in java?

674


What is jsp and jdbc?

707