What is garbage collection in Java, and how can it be used ?
Answer Posted / siva
Garbage collection is a thread, that runs to reclaim the
memory by destroying objects which object is cannot be
referenced anymore.
instead of calling destructor JVM do it automatically, as we
use destructor in c++ to destroy the object
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is singleton class and how can we make a class singleton?
What is array pointers ?
Why is string buffer better than string ?
What does 3 dots mean in java?
What is difference between wait and notify in java?
What is a ternary operator in java? What is an interface?
What is reverse function?
What is the use of isempty in java?
What is parameter example?
Can you explain the private protected field modifier?
what is instanceof operator used in java?
how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application
Explain the importance of finally over return statement?
Can we override constructor?
How do you achieve singleton?