What is garbage collection in Java, and how can it be used ?

Answer Posted / pranab dutta

When a Java object becomes unreachable to the program, then
it is subjected to garbage collection. The main use of
garbage collection is to identify and discard objects that
are no longer needed by a program so that their resources
can be reclaimed and reused.

Is This Answer Correct ?    322 Yes 35 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main function purpose?

531


What is meant by design patterns?

598


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1669


What is the differences between heap and stack memory in java? Explain

541


How do you use compareto?

556






What is module in project?

526


Is java 11 paid version?

516


What is bytecode in java ?

617


Difference between start() and run() method of thread class?

599


Mention some features of java?

548


how to open and edit XML file in Weblogic???

1562


Is 0 a real number?

600


Does string isempty check for null?

575


How do you create a bulleted list?

581


What is difference between iterator access and index access?

665