why are extending GenericServlet and why are extending
HttpServlet explain?
Answer Posted / venu bandla
because be extending generic servlet we can access only
common methods of servlet interface,and we fourcefully
access the httpservlet methods by type casting the
servletRequest and ServletResponse objects into
httpServletRequest and HttpServletResponse.so this procedure
is not recommended because of redendent code.so we are
extending the HttpServlet class
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the type of protocols used in httpservlet?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What is cookie? Why is cookie used?
What is servlet lazy loading?
How are filters?
Why jsp is better than servlet?
What is java servlet?
How do we share data using 'getservletcontext ()?
What does the term localization refer to?
What is cookie in servlet?
What is servlet and its types?
What is http servlet? Explain with the help of an example.
Difference between GET and POST?
What is servlet in tomcat?
Which event is fired at the time of setting, getting or removing attribute from application scope?