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
Which is better jsp or servlet?
Which event is fired at the time of project deployment and undeployment?
How do we translate jsp?
What is a web application and what is it’s directory structure?
What do you mean by httpservlet?
Explain the features are in servlet 3?
Can we use threads in Servlets?
What is servlet and its types?
How will two or three servlets interact or communicate with each other?
Which interface should be implemented by all servlets?
What is Client-Server Computing?
Define declaration.
When to use doget() and when dopost()?
What is http servlet?
What is a servlet context object?