What is garbage collection in Java, and how can it be used ?

Answer Posted / ashish

Garbage collection is the Process of automatically freeing
objects that are no longer referenced by the Program.
But a Potential disadvantages of a garbage-collected heap is
that it adds an overhead that can affect program performance....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java does not support pointers?

561


What are java packages?

586


What are static initalizers in java ?

583


Explain the difference between jvm and jre?

561


Are global variables initialized to zero?

511






What is vector capacity in java?

600


What is the access scope of a protected method?

562


What is json parser in java?

617


Is set thread safe java?

504


How many types of array are there?

550


What are the advantages of passing this into a method instead of the current class object itself?

1174


What is the use of inner class?

545


Is it possible to use string in the switch case?

555


What is the difference between the font and fontmetrics classes in java programming?

505


Is class forname reflection?

520