This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 56202
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When does Connection Object is ready for Garbage Collection?
 
Similar Threads
Ready for garbage collection
GC Question.
garbage collection
finishing a thread
Is this Memory Lekage?