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
What are inbuilt functions in java?
What do you mean by buffering?
How can you traverse a linked list in java?
What is the formula to calculate percentage?
Explain the significance of class loaders in bootstrap?
What is exception in java?
What is method overloading in JAVA? Why is it not present in C ?
How to display arraylist values in java?
What is a linkedhashmap java?
What is the public field modifier?
What is the purpose of default constructor?
How to convert string to char and vice versa?
What is main function purpose?
Is java a virus?
What is contractor means and methods?