Java: ill defined finalize method to create memory leak
<p>In java the garbage collect will invoke finalize method on an object x if there's no strong reference pointing to x and x is eligible for garbage collection.  What if the finalize method never terminates, would this cause a memory leak?</p>

<pre>
public class X{
  protected void finalize(){
     while(true){}
  }
}
</pre>
