What is garbage collection in Java, and how can it be used ?
Answer Posted / sivadasan
Garbage collection is a thread, that runs to reclaim the
memory by destroying objects which object is cannot be
referenced anymore.
Deleting Dynamically created objects from the memory.
Finalize method used to achieve garbage collection.
By using Runtime.gc() or System.gc() the object will be
garbage collected.
| Is This Answer Correct ? | 30 Yes | 16 No |
Post New Answer View All Answers
how to write a server program and sending the mails to the server using smtp protocol please help me
Can we catch more than one exception in single catch block?
What does @override mean?
What are parsing rules?
Explain thread life cycle in java?
Can we catch more than one exception in a single catch block?
Can we sort arraylist in java?
What do you mean by thread safe?
What is 16 bits called?
What is meant by attribute?
Write an algorithm for quick sort?
What is the loop in java?
How do you create a sop?
What is member in java?
How do you define a variable?