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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -