How and When does JVM becomes out of memory
<p>I was asked in a interview : How to make JVM run out of memory?</p>

<p>I answered saying it may be done by having an infinite loop. I am pretty sure it was not a right answer.</p>

<p>What was the answer he might be expecting for?</p>
