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

Answer Posted / sudeep baranwal

Garbage collection is reclaiming the unused memory by the invalid objects.Garbage collection is thread when its work unused memory Created objects from the memory.Garbage collection for responsible this process.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is final variable?

589


What is not thread safe?

613


Is a char always 1 byte?

603


What is java Applet?

729


How hashmap works in java?

680






Why java is used everywhere?

661


Can singleton class be serialized?

618


Why are variables important in research?

639


Does variable declaration allocate memory?

690


Where is singleton pattern used?

628


What loop means?

641


How to Sort Strings which are given in List and display in ascending order without using java api.

3930


What is meant by string is immutable?

610


Is intellij better than eclipse?

636


What is the difference between array list and vector in java?

597