Which method the Servlet container call to create the
instance of the servlet?

Answer Posted / m.gangadhar from sathya techno

The ServletContainer is used default zero argument
constructor to create servlet instance then after it calls
init(ServletConfig cg) it internally calls init()for
initialization puposes.


Plz guys init() is not used for creation of servlet instance

Is This Answer Correct ?    26 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the session in servlet can be destroyed?

887


How can we perform any action at the time of deploying the project?

866


What is servlet? Explain

768


What are the advantages of Servlet over CGI?

857


What are the different methods of session management in servlets?

728


What is MIME Type?

862


What is cgi and what are its drawbacks?

730


What is http servlet in java?

754


Is servlet a controller?

740


What is httpservlet and how it is different from genericservlet?

803


What is the default http method in the servlet?

1001


What is the servletconfig object?

736


How to commuincate between an applet and a servlet?

773


What is servlet lazy loading?

887


What is preinitialization of a servlet?

771