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 the use of welcome-file-list?
What are the phases of the servlet life cycle?
What is http servlet?
What is the process to implement doget and dopost methods?
Difference between forward() method and sendredirect() method ?
How do we call one servlet from another servlet?
Which is better jsp or servlet?
Explain the servlet context.
What is servletconfig?
Where do you define dispatcherservlet?
What are the differences between servlet context vs servlet config?
How does java thread pool work?
Describe some assignments that are executed by servlet container?
Why jsp is better than servlet?
What is the difference between sendredirect() and forward() in a servlet?