File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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: 60800
    
  65

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]
 
Consider Paul's rocket mass heater.
 
subject: When does Connection Object is ready for Garbage Collection?
 
Similar Threads
garbage collection
Is this Memory Lekage?
GC Question.
finishing a thread
Ready for garbage collection