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 is servlet used for?

698


Which event is fired at the time of project deployment and undeployment?

788


Servlet is pure java object or not?

719


What is the difference between encodeRedirectUrl and encodeURL?

605


What is pure servlet?

696






Write the code to get the server information in servlet.

573


Are Servlets Thread Safe? How to achieve thread safety in servlets?

560


What is called Session Tracking?

601


Which method is called when reference variable is passed in system.net?

1831


What is servlet in simple terms?

570


What is preinitialization of a servlet?

584


What is servlet lazy loading?

695


How can we refresh automatically when new data is entered into the database?

596


How does Cookies work in Servlets?

651


What are session variable in servlets?

568