java spring and bean garbage colletion
<p>When a spring bean is eligible for garbage collection. POJO in java are not reachable by the mark-and-sweep algorithm will be claimed by the garbage collection. How this concept works in springs? As spring beans are invoked in spring context. The existence of spring bean is governed by the spring context. What determines when a bean memory can be reclaimed ? Does scope of the bean influence this, if so how ?</p>

<p>Please correct me if I wrong, or the question needs update for better penetration.</p>