What is garbage collection in Java, and how can it be used ?
Answer Posted / veer
When an object has of no use in a program then it has to be
discarded to free the occupied space by it so that other
object can fill the space.That is what Garbaghe collection
is.
Is This Answer Correct ? | 42 Yes | 12 No |
Post New Answer View All Answers
What is flush () in java?
What is the use of flag?
What are the different collection views provided by maps?
Can we declare register variable as global?
What is the difference between compare and compareto in java?
What is exception hierarchy in java?
How can a gui component handle its own events?
Does string isempty check for null?
Convert a BST into a DLL and DLL to BST in place.
What is a dot notation?
What about interrupt() method of thread class ?
Will minecraft java be discontinued?
Does a class inherit the constructors of its superclass in java programming?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What are byte codes?