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


Please Help Members By Posting Answers For Below Questions

What is flush () in java?

545


What is the use of flag?

567


What are the different collection views provided by maps?

549


Can we declare register variable as global?

499


What is the difference between compare and compareto in java?

480






What is exception hierarchy in java?

571


How can a gui component handle its own events?

581


Does string isempty check for null?

550


Convert a BST into a DLL and DLL to BST in place.

652


What is a dot notation?

539


What about interrupt() method of thread class ?

575


Will minecraft java be discontinued?

631


Does a class inherit the constructors of its superclass in java programming?

507


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

583


What are byte codes?

640