This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes destroy( ) method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "destroy( ) method " Watch "destroy( ) method " New topic
Author

destroy( ) method

Ananth Ram
Ranch Hand

Joined: Jan 18, 2001
Posts: 99
Hi,

What happens if I call destroy( ) when init( ) is called ??


Tx,
Karthik
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Nothing will happen. destroy() is called by the container when servlet is going to destroy. It is the place provided to the developer to cleanup the resources used.
 
jQuery in Action, 2nd edition
 
subject: destroy( ) method