• Post Reply Bookmark Topic Watch Topic
  • New Topic

jspDestroy method query  RSS feed

 
Ashu Jain
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per Marcus Green notes -
"The jspDestroy method is little like the finalize method in a plain old java class, in that you cannot be certain exactly when it will run"

My understanding from the above line is -
(A) Both are invoked once and usually used to release resources.This is true
(B) It is not certain for when both will run. True for jspDestroy as well. Please confirm if this is true

I know that there is no guarentee of whether finalize will ever run as well. Does that hold true for jspDestroy method as well.

Please clarify.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!