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
What is preinitialization of a servlet?
What are the two important api's in for servlets?
What are the different methods involved in the process of session management in servlets?
Tell us something about servletcontext interface.
Which interface must be implemented by all servlets?
What are some advantages of storing session state in cookies?
What is the use of request dispatcher interface?
What is http servlet?
Which exception is thrown if the servlet is not initialized properly?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What is the procedure for initializing a servlet?
Explain servlet life cycle?
What are the different session tracking techniques?
why we should override only no-agrs init() method.
Why servlet is mostly used?