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
Explain session tracking and its importance?
What are the functions of Servlet container?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
Explain servlet life cycle?
Is servlet thread safe?
Explain jsessionid and when is it created?
What is servlet interface?
Is servlet a server side scripting language?
What are the life-cycle methods for a servlet?
What is the use of servlet context?
Who is responsible for writing a constructor?
Explain Action Servlet?
What are the types of protocols supported by httpservlet ?
What are the different session tracking techniques?
What is the difference between Server and Container?