generally jvm runs on following occasions 1: periodicaliy 2: when program is about to run out of memory the JVM runs and finallize the objects. 3: when we call using System.gc or Runtime.getruntime.gc
pls correct me if i m wrong On Sat, Jul 30, 2011 at 11:10 AM, vaibhav shukla <[email protected]>wrote: > please give a glimps of how garbage collection is done in java. > how *System.gc()* works ? > > -- > best wishes!! > Vaibhav > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
