Which method the Servlet container call to create the
instance of the servlet?

Answer Posted / sunil

servlet container calls the init() method to create the
instance of the servlet.
The instance is created for the servlet in which the init()
method is implemented.

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How printwriter is different from servletoutputstream?

774


Is dispatcher servlet a singleton?

743


What are the new features added to servlet 2.5?

835


Why HttpServlet class is declared abstract?

862


How do you design microservices?

821


How to get the current httpsession object?

873


What are advantages of servlets over cgi?

819


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

784


List some life cycle methods of a servlet.

790


Which interface must be implemented by all servlets?

1029


What do you mean by request dispatcher in servlet?

861


What is meant by a web application

758


What is a web application and what is it’s directory structure?

815


What are the functions of the servlet container?

1321


What is the difference between Difference between doGet() and doPost()?

977