What is garbage collection in Java, and how can it be used ?
Answer Posted / syed sikandar bakht
when an object in memory is no longer refered by a variable,
the garbage collector automatically move it to garbage
collection.
instead of calling destructor JVM do it automatically, as we
use destructor in c++ to destroy the object.
Is This Answer Correct ? | 20 Yes | 6 No |
Post New Answer View All Answers
How do you override a private method in java?
Outline the major features of java.
What is square root in java?
Where are local variables stored?
How do you generate random numbers in java?
What is literal example?
What is stack class in java?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What is connection class in java?
describe synchronization in respect to multithreading? : Java thread
What is implicit object in java?
Explain about interthread communication and how it takes place in java?
What is bytecode verifier?
What restrictions are placed on method overloading in java programming?
What is final class?