can i call destroy() method in init() method of servlet
Answer Posted / deepesh
Yes, We can call destroy() from init() method but after
coming out from the destroy() it will again process the init
() method like the life cycle has to be. Thus we can not
control the servlet life cycle, though we can call destroy
() from init().
Thanks.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the uses of servlet
When should you prefer to use doget() over dopost()?
How to commuincate between an applet and a servlet?
Explain the steps involved in placing a servlet within a package?
What is the process for chaining servlet?
What are the types of Session Tracking ?
What are the jobs performed by servlets?
Define the servlet mapping.
What’s the difference between genericservlet and httpservlet?
How can the referrer and the target urls be used in servlet?
What are the benefits of using servlet over cgi?
What is servlet looping or chaining?
Can you explain in detail 'javax.servlet' package?
What are the life cycle methods of the servlet?
How can you create a session in servlet?