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
Why array is used in java?
Difference between Linked list and Queue?
Difference between static binding and dynamic binding?
Is simpledateformat safe to use in the multithreaded program?
What is meant by nested loop?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What means public static?
Is it possible to compare various strings with the help of == operator?
What is the best definition for data?
Can main() method in java can return any data?
How can a gui component handle its own events?
When do we need to use internal iteration? When do we need to use external iteration?
What is difference between equal and == in java?
What are JVM.JRE, J2EE, JNI?
What is the platform?