why are extending GenericServlet and why are extending
HttpServlet explain?
Answer Posted / dinesh goud
with out extending those servlets,we have to write all the methods in Servlet interface..............In order to write all the methods in Servlet interface.we go for extending GenericServlet and HttpServlet............
public UserServlet implemetns Servlet
{
provides bodies for all methods;
}
public UserServlet extends GenricServlet
{
provides bodies for methods ur wish and well
}
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
How do I know if java is running on linux?
Explain request dispatcher and its methods.
What's the difference between servlets and applets?
What do you mean by session tracking and also explain its techniques?
How printwriter is different from servletoutputstream?
What is war file?
Why is servlet used?
Is it good idea to create servlet constructor?
Explain the servlet context.
Explain the lifecycle of a servlet?
What are the advantages of servlets over traditional cgi?
What do you mean by annotations in servlet?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
When servlet object is created?
How forward () method is different from send redirect () method?