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
When to use doget() and when dopost()?
What do you mean by request dispatcher in servlet?
Explain is servlet mapping?
What are the advantages of servlets over traditional cgi?
Explain how to improve Servlet Performance?
What do you mean by request dispatcher in servlet? Also explain its methods.
What do you mean by a filter and how does it work?
How servlets are deployed in java?
Is it good idea to create servlet constructor?
How do you design microservices?
How can we create deadlock situation in servlet?
Can we override servlet service method?
How does tomcat servlet container work?
What is servlet instance?
What is meant by a servlet?