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
What is Request Dispatcher?
Which event is fired at the time of session creation and destroy?
Tell us something about servletconfig interface.
Who is responsible for writing a constructor?
How to generate the server side programming and the advantages of it over the other languages?
What is servlet name in web xml?
Which exception is thrown if the servlet is not initialized properly?
Explain web container.
List out the difference between ServletConfig and ServletContext?
What do you mean by filter in servlet?
What is ServletConfig object?
Explain get and post.
What is cookies in servlet with example?
What are sessions in servlets?
Is tomcat a servlet container?