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


Please Help Members By Posting Answers For Below Questions

What is the difference between Difference between doGet() and doPost()?

994


Why do we have servlet listeners?

818


Can you use javascript in servlets?

830


What is difference between jsp and servlet?

913


Why is http protocol called as a stateless protocol?

758


What is the need of servlet filters?

755


Explain jsessionid and when is it created?

816


What are the key methods that are involved in processing of http servlets?

880


What's the architecture of a servlet package?

765


Explain the different ways for servlet authentication?

803


What is cgi?

795


What is webservlet?

755


What is Request Dispatcher?

1091


Which protocol will be used by browser and servlet to communicate

782


What is context in servlet?

783