What is Generic Servlet and how it is different from Http
Servlet?
Answer Posted / l sujata
Actually generic sevlet class is a super class of
HttpServlet class.both of these classes are abstract in
nature.As in generic servlet service () methob is not
defined so they r defined in HttpServlet class. as we are
not interested to create an object of HttpServlet class
so,we make it as abstract class and class that implemnts
HttpServlet Class creates objects and uses three methods
such as init(),service(),destroy() mainly.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What do you mean by httpservlet?
What is setattribute in servlet?
What are different ways for servlet authentication?
What is the use of servlet wrapper classes?
Explain the different ways for servlet authentication?
Can you send an authentication error from a servlet?
What is the difference between sendredirect() and forward() in a servlet?
What do you mean by cgi in servlet?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
How do you load an image in a Servlet?
What is the directory structure of web application?
What are sessions in servlets?
Which interface should be implemented by all servlets?
What is the difference between the include() and forward() methods?
How is the get () method different from the post() method?