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
What is meant by session? Tell me something about httpsession class?
Can we refresh servlet in client and server side automatically?
What are the difference between session and cookies in servlet? Explain
How servlets are deployed in java?
What are the different ways we can maintain state between requests?
What is the use of httpservletresponsewrapper?
What is difference between cookies and httpsession?
What do you understand by mime type?
Why doesn’t a servlet include main()?
Why do we have servlet filters?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is webservlet?
What is the GenericServlet class?
Why are servlets used?
How do I use cookies to store session state on the client?