Hi, Static objects are not garbage collected at all. They are considered to be live objects. Is this true. -Sanjana
posted 12 years ago
Hi, the answer is "False". A static reference is like any other reference - if it goes out of scope (i.e. no live thread can access it), the object referenced by it on the heap becomes available to GC. However, the system classes are never GC-ed. You may find the following link interesting: No Silver Bullet - Garbage Collection for Java in Embedded Systems Read the section named "Garbage Collection and Java".