aspose file tools*
The moose likes JDBC and the fly likes When does Connection Object is ready for  Garbage Collection? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "When does Connection Object is ready for  Garbage Collection?" Watch "When does Connection Object is ready for  Garbage Collection?" New topic
Author

When does Connection Object is ready for Garbage Collection?

Vaithialingam Asai
Greenhorn

Joined: Mar 07, 2004
Posts: 10
Can anyone tell me when the Connection object is ready for garbage collection ?



Thanks in Advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61063
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When does Connection Object is ready for Garbage Collection?