I know that static variables persisted across the life of the application if the they are not de-referenced.
But are static variables garbage collected if they are de-referenced? Or do I just not know what I'm talking about?
Thanks
edit
Okay I think I get it. There are no static objects per se, there are static references. Static references persist throughout the application life-cycle, and are never garbage collected. Therefore, any object they point to will not be garbage collected. Additionally, all non-static references that go out of scope will be garbage collected.
Is my understanding correct?
Thanks again