Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

 Does garbage collection guarantee that a program will not run out of memory? 

Garbage collection does not guarantee that a program will not run out of memory. It ispossible for programs to use up memory resources faster than they are garbage collected. As garbage collection is JVM dependent then It is possible for programs to use memory resources faster than they are garbage collected.Moreover garbage collection cannot be enforced,it is just suggested.