![]() |
JAVA EXAMPLE PROGRAMS |
Publish Your Article Here
|
|
|
Java2Novice - YouTube Channel
Knowledge Centre
Can we call servlet destory() from service()?
As you know, destory() is part of servlet life cycle methods, it is used to kill the
servlet instance. Servlet Engine is used to call destory(). In case, if you call destory
method from service(), it just execute the code written in the destory(), but it wont
kill the servlet instance. destroy() will be called before killing the servlet instance
by servlet engine.
Famous Quotations
The very best thing you can do for the whole world is to make the most of yourself.
-- Wallace Wattles
Few Random Java Examples
|
Reference: Java™ Platform Standard Ed. 7 - API Specification | Java™ Platform Standard Ed. 8 - API Specification | Java is registered trademark of Oracle. |
Privacy Policy | Copyright © 2022 by Nataraja Gootooru. All Rights Reserved. |