What is garbage collection in Java, and how can it be used ?
Answer Posted / sangeetha
when we remove the object that it will be stored particular
memory space these are known as garbage collection.
It is finalize method is used in the garbage collection.
| Is This Answer Correct ? | 32 Yes | 20 No |
Post New Answer View All Answers
what is the swingutilities.invokelater(runnable) method for? : Java thread
Where is jre installed?
What is an abstract method in java programming?
What are recursive functions? Give some examples?
I want to persist data of objects for later use. What is the best approach to do so?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Is there is any difference between a scrollbar and a scrollpane?
How to avoid memory leak in java?
Explain about class in java?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What is the purpose of javac exe?
What is the difference between the paint() and repaint() methods in java programming?
How do you use find and replace?
What’s the difference between applets and standalone program?
Explain naming conventions for packages?