What is the exact difference between Runtime.maxMemory()
and Runtime.totalMemory()
? The javadoc is quite vague about this (for me).
What are typical use cases for these two methods, that is, When would it be inappropriate to use the respective other one?