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 is the process for chaining servlet?
What is servlet mapping?
What is servlet looping or chaining?
What do you mean by chaining in servlet?
Explain the difference between generic servlet and http servlet?
How can an existing session be invalidated?
why we should override only no-agrs init() method.
Can we use the constructor, instead of init(), to initialize servlet?
How to rectify errors in java servlet while compilation?
How to commuincate between an applet and a servlet?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What are the life cycle methods of a servlet?
What are different ways for servlet authentication?
What is cookie? Why is cookie used?
What do you mean by session tracking?