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 must be implemented by all servlets?
Describe in brief RequestDespatcher?
What do you mean by httpservlet?
how many jsp scripting elements are there and what are those?
Write a servlet to upload file on server.
What are the different ways we can maintain state between requests?
When to use doget() and when dopost()?
Why is http protocol called as a stateless protocol?
What is cookie? Why is cookie used?
What is the difference between CGI and Servlet?
How do you define a servlet?
List out difference between a JavaBean from a Servlet?
What is servlet instance?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What are the types of servlets? Explain