Hi,
Does garbage collection guarantee that a program will not run out of memory?
No not like that.
JVM is much more efficient when to do garbage collection.
The garbage collection depends on JVM version.
As the JVM version moves on Sun tries to improve the performance of it.
As we know the Run Time System of Java is JVM but JVM runs on OS Platform.
So the ultimate Memory is done by OS.
All these works happen so efficiently.
Run out of memory happens due to lot of causes.
One cause I generally face that is Stack over flow or Infinite loop.
Kind regards,
Dmjpro.