Objects are garbage-collected when there is no more reference to them.In case of static members you may think that they are referenced by the Class. So they are gc'ed when the class is gc'ed.(Classes are garbage-collected when their defining classloader is gc'ed )