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

What is the difference between jsp and servlet life cycle?

927


What are some disadvantages of storing session state in cookies?

773


What are the types of an http request?

794


What is preinitialization of a servlet?

765


What are the phases of a servlet life cycle?

825


What’s the use of the servlet wrapper classes??

823


What do you mean by scope object and what are its types?

761


How httpservlet is different from the genericservlet?

776


What is called a session?

817


Is dispatcher servlet a singleton?

725


What is servlet invoker?

758


What do you mean by servlet context?

783


Difference between doget and dopost?

890


What are the supporting protocol by HttpServlet ?

842


What is difference between PrintWriter and ServletOutputStream?

979