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 is difference between get and post method?
Explain the difference between get and post method in servlet?
If some new data has entered the database, explain how can a servlet refresh automatically?
What are the different methods of session management in servlets?
What are session variable in servlets?
What is cookie in servlet?
What’s the use of the servlet wrapper classes??
What is a java servlet?
How to generate the server side programming and the advantages of it over the other languages?
What do you mean by servlet context?
List out the difference between ServletConfig and ServletContext?
What are the servlet events?
What is context in servlet?
Who is responsible for writing a constructor?
how many jsp scripting elements are there and what are those?