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

Which is the methods of generated servlet?

682


Explain the different ways for servlet authentication?

532


What are the uses of servlet and what is servlet chaining?

559


Which event is fired at the time of project deployment and undeployment?

788


Tell us something about servletcontext interface.

628






What is servlet interface?

704


Explain url encoding?

519


What are the exceptions thrown by servlets? Why?

625


Difference between get and post in java servlets?

548


What are the different methods of session management in servlets?

539


Which is better jsp or servlet?

558


Is that servlet is pure java object or not?

644


Can servlet have a constructor ?

597


What is java servlet session?

529


Explain the features are in servlet 3?

603