What is Garbage collection ?

What is Garbage collection ?

Java provides the automatic garbage collection facility. 

 JVM performs the garbage collection to free up the unnecessary memory which can\'t be reached through the object reference. We can\'t force the JVM to perform the garbage collection, but we can request the JVM by our program to to call the method System.gc(), but it is upto JVM to perform garbage collection or not.

Date:2012-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher