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

Answer Posted / samik bandyopadhyay

The init() method is only used to initialize an existing
servlet instance before it starts providing service to
requests, it's never used for creating a servlet instance.
I'm searching for the method which creates the servlet
instace. But I can assure that we can't create a servlet
instace, it's done by the container.

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are filters?

801


What are the phases of servlet life cycle?

813


Which method of the httpservletrequest object is used?

761


Which application server is best for java?

764


Define the lifecycle for executing a jsp page.

826


How do you get the ip address of the client in servlet?

746


What is preinitialization of a servlet?

773


What is the structure of the http response

910


Servlet is pure java object or not?

919


How can a servlet be used to generate plain text instead of html?

741


What exactly is a servlet?

704


How can you run a servlet program?

788


How to find whether a parameter exists in the request object?

872


How the servlet is loaded?

792


Why do we have servlet listeners?

792