When to use Runtime.maxMemory() and totalMemory()
<p>What is the exact difference between <code>Runtime.maxMemory()</code> and <code>Runtime.totalMemory()</code>? The javadoc is quite vague about this (for me).</p>

<p>What are typical use cases for these two methods, that is, When would it be inappropriate to use the respective other one?</p>
