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
How can we invoke another servlet in a different application?
Which are the different ways you can communicate between servlets?
What is the difference between context parameter and context attribute?
When a servlet accepts a call from a client, it receives two objects. What are they?
What are the advantages of Servlet over CGI?
How the JSP file will be executed on the Server side?
Differentiate between the web server and application server?
What do you mean by default initialization in java servlet?
Explain the difference between get and post method in servlet?
What is the need of servlet filters?
Why is Servlet so popular?
How can the session in servlet can be destroyed?
Where do you define dispatcherservlet?
What is servlet in tomcat?
What is servlet api used for conneting database?