What is garbage collection in Java, and how can it be used ?
Answer Posted / ravi
when there are no refrences to an object,means that it is
not in use anymore.so the JVM marks it for garbage
collection ,which is basically a process of taking back the
resources from the object which was given to it earlier.
Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is use of valueof () in java?
What is ph and buffers?
What are the special characters?
What are the three best choices for a development environment?
What do the thread?class methods run() and start() do?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Can we rethrow the same exception from catch handler?
What is local class in java?
Explain notifyall() method of object class ?
What is the difference between the boolean & operator and the && operator in java programming?
What is the same as procedures?
How variables are declared?
What is the default execution method in java?
What is size () in java?
How do you represent a space in regex java?