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 generic servlet class?
What are session variable in servlets?
What is cookie in servlet?
Explain the role of dispatcherservlet and contextloaderlistener.
When servlet is loaded?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
how many jsp scripting elements are there and what are those?
What do you mean by request dispatcher in servlet?
What is servlet and its types?
What are important features of Servlet 3?
What are the disadvantages of storing session state in cookies?
Explain jsessionid and when is it created?
How can we achieve transport layer security for our web application?
Why are servlets used?
How servlet is created?