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

Answer Posted / v.bojjanna

first the web container call the servlet init(). after it
call the newInstance() for create the servlet object

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are Servlets?

849


What are the jobs performed by servlets?

798


Differentiate between get and post?

905


How many objects of a servlet is created?

1022


Why is a constructor needed in a servlet even if we use the init method?

842


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

790


How do you find out what client machine is making a request to your servlet

793


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

1075


Why doesn’t a servlet include main()?

796


What is servlet container?

888


Can you refresh servlet in client and server-side automatically?

824


How do we go with database connection and log4j integration in servlet?

937


What do you mean by servlet context?

812


What is the process to implement doget and dopost methods?

752


What is the difference between get and post methods?

804