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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / sunil

servlet container calls the init() method to create the
instance of the servlet.
The instance is created for the servlet in which the init()
method is implemented.

Is This Answer Correct ?    6 Yes 6 No

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

Answer / 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

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

Answer / madhusudhan

init(ServletConfig cg)

Is This Answer Correct ?    0 Yes 2 No

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

Answer / arun

the servlet container will call only init() method and it
will not create any instance of the servlet,it will pass
initialization parameters to the init() method,it is called
(i.e init() method ) before the servlet, services any
request.only once in the life cycle of sevlet this init()
method is called.

Is This Answer Correct ?    0 Yes 2 No

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

Answer / jeyanthinathan

init()

Is This Answer Correct ?    1 Yes 12 No

Post New Answer

More Servlets Interview Questions

what is the difference between doGet() and doPost()?

6 Answers   TCS,


What's the architecture of a servlet package?

0 Answers  


What are the uses of servlet and what is servlet chaining?

0 Answers  


how the jsp page can be regenerated?

2 Answers   HCL,


which method in doGet or doPost is use to send binary date to server

2 Answers   HCL,


In howmany ways applet-servlet communication can be done?

1 Answers  


give the syntax of doGet() and doPost()?

2 Answers  


What is ServletContext() and what is its use?

9 Answers   Prime Technology, TCS,


What do you understand by mime type?

0 Answers  


What do you mean by singlethreadmodel interface?

0 Answers  


how a user session can be tracked in servlets?

1 Answers  


What is the use of welcome-file-list?

0 Answers  


Categories