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

Answer Posted / venkatesh

ServletProcessor1.process() and this loads servlet class
using the mapping provided in web.xml and creates a new
instance of it.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a deployment descriptor?

841


Given the request path below, which are context path, servlet path and path info?

762


What is called a session?

839


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

852


How do you design microservices?

821


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

772


Can we use threads in Servlets?

850


What is the major difference between servlet and applet?

756


Is java servlet still used?

768


What's the difference between authentication and authorization?

796


What is servlet mapping?

760


What are the uses of servlet

823


Explain the difference between jsp and servlet?

775


Explain url encoding in servlet?

803


What is difference between PrintWriter and ServletOutputStream?

996