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
What is layer in communication?
What is jdbc and odbc?
What is 2 phase commit?
Can resultset be null in java?
What is represented by the connection object?
What is the execute method in java?
What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?
What are the common jdbc exceptions?
What is jdbc driver for sql server?
What are the conditions applies to varchar variable, when using in procedures?
What is the most common example type 1 driver?
What is sqlwarning?
What are the steps to connect to a database in java?
Which is better odbc or jdbc?
What does the jdbc driver interface do?