garbate collector(GC)?

Answer Posted / prabir kumar

1) it is a automatic memory management utility run by JVM.
2) the JVM cleaning the objects from the memory which are
no longer being referenced.
3) the object that is not instantiate or containl null is
also applicable for garbage collection.
3) explicitly running garbage collector is very expensive.
4) to run the garbage collect call the static method of
System class e.g. System.gc();

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the statements?

595


What is a for loop in java?

601


When is an object subject to garbage collection?

588


What are register variables what are the advantages?

452


What data type is a string?

515






What do you mean by default constructor in java?

582


What is numeric data type?

535


What is java used for?

562


How do you declare a variable?

631


Is string pool garbage collected?

554


can used Protected Class outside Function.?

617


What is the this keyword?

560


Is a method a function?

555


How do you do math powers in java?

581


What type of variable is error flag?

593