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

What do you mean by the servlet chaining?

524


What is cookies in servlet with example?

500


Can you call a jsp from the servlet?

531


What are its drawbacks of cgi?

549


What is called Scriptlet?

539






Why do we need a constructor in a servlet if we use the init method?

494


What is difference between cookies and httpsession?

522


What are the mechanisms used by a servlet container for maintaining session information?

542


How to get the current httpsession object?

629


Name the packages that work with servlet?

521


Explain the difference between a web server and a web container?

490


What is URL Encoding?

600


What is servlet collaboration?

639


How can you push data from an Applet to a Servlet?

591


What do you mean by web applications?

607