Java garbage collection confusion -
if have long-lasting object , lots of temporary objects b, c, d, etc. contain reference a, temporary objects ever collected long referenced something?
class {} // (sits in web app session) class b { private a; } class c { private a; } where b , c exist request only, contain references a.
they will, if there no way reach b , c (but reach other objects) collected usual.
Comments
Post a Comment