Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Beginning Java
Static variable
Fisher Daniel
,
Ranch Hand
Feb 04, 2003 01:33:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Dear all,
When are static variables eligible to garbage collection?
thanks
daniel
Anonymous
,
Ranch Hand
Feb 04, 2003 04:23:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Static variables are garbage collected when the class they belong to is garbage collected. Classes can only be collected when nothing refers to that class anymore.
kind regards
John Wetherbie
,
Rancher
Feb 04, 2003 07:05:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
If the static variable is being used by a number of objects then it is eligible for GC when the last object using it is GC'd.
Post by:
autobot
I think I'll just lie down here for a second. And ponder this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
This thread has been viewed 847 times.
Similar Threads
object creation and garbage collection
Garbage Collection
Brogden's Garbage Collection?
Garbage Collection
Garbage Collection
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 03:14:39
.