• Post Reply Bookmark Topic Watch Topic
  • New Topic

When does Connection Object is ready for Garbage Collection?  RSS feed

 
Vaithialingam Asai
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me when the Connection object is ready for garbage collection ?



Thanks in Advance
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As with any other object, when the JVM determines that there are no references to the object.

If your code depends upon this, it is doing something wrong.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!