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 to implement doget and dopost methods?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is the difference between 2 types of servlets?
Which method of the httpservletrequest object is used?
Explain how does JSP handle run-time exceptions?
Why do we have servlet filters?
What are the types of Session Tracking ?
How to get the current httpsession object?
Can we override servlet service method?
What are different Authentication options available in Servlets.
How do you communicate in between Applets and Servlets?
Define the lifecycle for executing a jsp page.
What are the new features added to servlet 2.5?
Who is responsible to create the object of servlet?
What is the difference between using getSession(true) and getSession(false) methods?