can i call init() method in destroy() method of servlset. ?
Answer Posted / gayathri janarthanam
One can programatically call destroy() from init(), though it is not recommended. it will be invoked like a regular java method call..Whatever code is written in the destroy method will run....It will not destroy the servlet...Only the servlet container can call the destroy() method to actually destroy a servlet....
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is difference between server and servlet?
What is Client-Server Computing?
How will you pass values from HTML page to the servlet?
What are the functions of the servlet container?
What is context in servlet?
What is difference between cookies and httpsession?
What are the advantages of servlets over traditional cgi?
How do cookies work in servlets?
What is the difference between the include() and forward() methods?
Can we override servlet service method?
What is the use of httpservletresponsewrapper?
Explain how to improve Servlet Performance?
What do you mean by scope object and what are its types?
What is the difference between Difference between doGet() and doPost()?
What is the life cycle of a servlet?