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 advantage of Servlets when compared with other server side technologies?
What are the different methods involved in the process of session management in servlets?
What is the difference between Difference between doGet() and doPost()?
How the JSP file will be executed on the Server side?
When should you prefer to use doget() over dopost()?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
Explain url encoding in servlet?
Why do we need servlet filter?
Explain the difference between generic servlet and http servlet?
What is the difference between 2 types of servlets?
Explain mvc pattern.
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 the servlet?
What is servlet lazy loading?
What is the use of attribute in servlets?