Which method the Servlet container call to create the
instance of the servlet?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
give the syntax of doGet() and doPost()?
What’s the difference between forward() and sendredirect() methods?
Which event is fired at the time of project deployment and undeployment?
What are the advantages of cookies?
can i modify the data which are generated by the servlet
What is url encoding and url decoding
What are the classes and interfaces for servlets?
What do you mean by httpservlet and how it is different from the genericservlet?
How can a servlet refresh automatically if some new data has entered the database?
3 Answers Citi Bank, CitiGroup, IBM, Satyam,
What are the different mode that servlets can be used?
What is called servlet mapping?
What is the use of servletconfig interface?