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 are the functions of an intercepting filter?

0 Answers  


What is the difference between callling a RequestDispatcher using ServletRequest and ServletContext?

2 Answers  


What is cgi?

0 Answers  


Explain jsessionid and when is it created?

0 Answers  


What is servlet lazy loading?

0 Answers  






What are the exceptions thrown by Servlets?

4 Answers   Amplify Mindware,


difference between request.getSession(false) or request.getSession() and request.getSession(true)

2 Answers  


Can a servlet be called by passing its name as a parameter in the URL?

1 Answers   iFlex,


What is the difference between using getSession(true) and getSession(false) methods?

0 Answers  


How to maintain security in servlets?

2 Answers  


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

0 Answers  


What is the difference between servlet and jsp?

0 Answers  


Categories