Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When does Connection Object is ready for Garbage Collection?

 
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
Pie
Posts: 64631
86
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic