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


Please Help Members By Posting Answers For Below Questions

What is use of valueof () in java?

551


What is ph and buffers?

516


What are the special characters?

531


What are the three best choices for a development environment?

595


What do the thread?class methods run() and start() do?

534






Which container method is used to cause a container to be laid out and redisplayed in java programming?

592


Can we rethrow the same exception from catch handler?

556


What is local class in java?

514


Explain notifyall() method of object class ?

664


What is the difference between the boolean & operator and the && operator in java programming?

562


What is the same as procedures?

527


How variables are declared?

513


What is the default execution method in java?

618


What is size () in java?

540


How do you represent a space in regex java?

513