Which method the Servlet container call to create the
instance of the servlet?
Answer Posted / arun
the servlet container will call only init() method and it
will not create any instance of the servlet,it will pass
initialization parameters to the init() method,it is called
(i.e init() method ) before the servlet, services any
request.only once in the life cycle of sevlet this init()
method is called.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Can you send an authentication error from a servlet?
Why doesn’t a servlet include main()?
Can you call a jsp from the servlet?
Is tomcat a servlet container?
What is servlet looping or chaining?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Why jsp is better than servlet?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What are the annotations used in servlet 3?
What is servlet invoker?
What is servlet and its advantages?
Write a command to get actual path of a servlet to the server?
Can we fetch the attributes related to a servlet on a different servlet?
What's the architecture of a servlet package?
Is it possible to have a constructor inside the servlet?