adspace


Can we call destroy method inside init method?

Answer Posted / Chandan Kishore

No, it is not recommended or allowed to call the destroy() method inside the init() method in JSP. The init() method is called when the JSP page is loaded, while the destroy() method is called when the page is unloaded. Calling the destroy() method prematurely can lead to unexpected behavior.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need the source code for opening a word document in java

2306