Life-cycle of an object created in do-while loop in Java
<p>I have a do-while loop like this</p>

<pre><code>do {

   SomeObject someObject = new SomeObject();

} while(some condition is met);
</code></pre>

<p>I wish to know what is the life-cycle of <code>someObject</code> object and when will they become eligible for <code>GC collection</code>.</p>
