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

Answer Posted / tulsi

Garbage collection means deallocation of variables,which
are of no use(variables that wont be usefull in future).It
is a automatic process that occurs during the execution of
your program. In other lanuages this facility is not
provided, we have to do it mannually where as java provides
this process known as garbage collection.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do we use synchronized methods in java?

592


How to stop a thread in java? Explain about sleep () method in a thread?

594


Difference between final and effectively final ?

643


What are the elements of java?

576


What is a Presistent Object?

649






What are the steps involved to create a bean?

687


What does it mean that a method or field is “static”?

557


What is a condition in java?

542


What do you understand by the bean persistent property?

568


How do you stop a thread in java?

605


What is scanner in java?

547


What is another word for methodology?

523


Why is multiple inheritance not supported in java?

571


What is string value?

646


Does variable declaration allocate memory?

591