can i call init() method in destroy() method of servlset. ?

Answer Posted / arulmani

init()method will be called by the webcontainer with the
servlet object by passig the ServletConfig object,when the
servlet object will be created.

destroy()method will be called by the webcontainer when
servlet object will be destroyed

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can an existing session be invalidated?

655


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

2075


Can we use threads in Servlets?

648


What are life cycle methods of a servlet?

583


What do you mean by servlet?

711






how the HTML data stored in web server?

1949


Why filter is used in servlet?

522


What is the type of method for sending request from http server?

586


If some new data has entered the database, explain how can a servlet refresh automatically?

727


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

611


What does the term localization refer to?

578


What must be implemented by all servlets?

567


What are the different methods involved in the process of session management in servlets?

659


Is servlet a controller?

567


What is called a session?

617