why are using HttpServlet in realtime projects and why are
not using Genericservlet
Answer Posted / arun sharma
HttpServlet is Http Protocol Specific whereas Generic
servlet is protocol independent and as we know that on
world wide web only http protocol exists thats why most of
the servlets are developed using HttpServlet class. but id
we want proocol independent servlet in that case we develop
servlet using GenericServlet class.
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of cookies?
What do you mean by web applications?
What is httpservlet class?
What's the use of servletcontext?
Explain web application directory arrangement?
What is called Scriptlet?
What is lazy loading and what is Generic Servlet Class?
How to notify an object in session when session is invalidated or timed-out?
What is the use of servletconfig interface?
What is ServletConfig object?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What are the two important api's in for servlets?
What are the functions of an intercepting filter?
Whats the advantages using servlets over using CGI?
Difference between doget and dopost?