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

Answer Posted / sachin deshmukh

In java doesn't allow memory leakage,Garbage collector
automatically deallocates memory.It deallocates memory of
objects that no longer has any references i.e. references
count is zero.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can interface be private in java?

540


Can you declare an interface method static?

578


What is the purpose of format function?

618


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

610


Is it safe to install java on my computer?

539






What does this mean java?

552


What is difference between overloading and overriding in java?

525


Is java same as core java?

584


How finally used under exception handling?

510


Why we go for collections in java?

540


what are abstract functions?

557


Can you add null to a list java?

583


What are namespaces in java?

522


What is the difference between a vector & an array list?

674


Can we write class inside a class in java?

548