How is Garbage collection done in Java?
Answer Posted / boomiraj
Programmer can not cause the garbage collector.
We can call the garbage collection using System.gc();
And we can set the variable value equal to null, it assign that variable garbage rest the that use.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How do you sort in java?
What are the main uses of the super keyword?
What is the difference between declaration and definition in java?
How do you declare a destructor in java?
Why do we need data structure in java?
What occurs when an object is constructed?
What does %d do in java?
What is the use of keywords in java?
Tell me about your ability to work under pressure
What is set string?
Which is bigger double or float?
Explain wait() method of object class ?
What is serialversionuid?
Can constructor be protected in java?
What is not thread safe?