answersLogoWhite

0

Does garbage collector clean unmanaged objects?

Updated: 8/19/2019
User Avatar

Wiki User

13y ago

Best Answer

Garbage Collector cleans up all unused or unreferenced objects. Any object that is no longer referred by any other object is eligible for cleanup and the garbage collection mechanism deletes these objects to make space for the program

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Does garbage collector clean unmanaged objects?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When you define clean up destructor how does it affect garbage collector?

If you define clean up in destructor garbage collector will take more time to clean up the objects and more and more objects are created in Gen 2..


Why is the garbage collector important to the community?

i think it is imprtant because it is making our coumnity clean


Memorymically and and not reclaming it when it is no longer it is needed in java there is no such problem as there is as garbage collector what is it?

I guess you want to talk about the garbage collector feature that Java has. The garbage collector is an automated program that the Java virtual machine would run once in a while. This program would clean up unused memory to ensure that there is enough memory available for the programs. you can invoke the garbage collector by calling the system.gc() method but this does not guarantee an invocation of the garbage collector. the JVM may or may not call the GC when we invoke it...


How do you delete the given string in java programming?

You usually do not need to delete a String, since when the program no longer refers to it, the garbage collector will clean it up.


In the giver book what are some euphemisms for bathroomgarbage collector?

In "The Giver," some euphemisms for "bathroom" could include "relief room" or "sanitation station." For "garbage collector," euphemisms might include "clean-up crew" or "waste management worker."


Why java does not support destructor?

AMIT KUMAR3th Nov , 2014Java does not support destructors, since java supports the concept of garbage collection,hence the garbage collector is used to automatically free the space which has occupied by the program while running.Garbage collector calls the finalize() method which is defined in the object class. finalize() method is called once for each object.


How can you keep your land clean?

throw garbage in the right place which is the garbage bin .


How do I clean my car myself without paying someone to do it for me?

You can clean your car by yourself by cleaning out your garbage everyday. Keep a garbage bag in your car and throw the garbage in it as you get garbage. Then remove the bag everyday and throw it out and do the samething everyday.


How do you make a lake clean?

by not throwing garbage in it


How do you clean garden light solar panels?

With a soft cloth and a gentle detergent, then dry them with a dry lint free, cloth or paper. Clean the solar collector panel, and wipe the dirt from the top of the panel. Look for bugs and tiny garbage, and remove these also. Use a damp cloth, and wipe gently.


How clean is gurgaon in terms of air?

not very clean and we the people are responsible for it but we can stil change it by throwing garbage in bins and using CNG in cars


What is the risk to store food in the garbage bin?

there is none as long as the garbage can is clean (New) and you have ice to keep things cold if you need to