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

Answer Posted / sangeetha

when we remove the object that it will be stored particular
memory space these are known as garbage collection.

It is finalize method is used in the garbage collection.

Is This Answer Correct ?    32 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the enableevents() method?

591


What is sorting algorithm in java?

535


Is array size fixed in java?

554


What is empty list in java?

633


What is tochararray in java?

508






What is meant by method overriding?

551


What is data object example?

544


What is hash in java?

527


What is final variable?

507


What is classname class in java?

544


What does three dots mean in java?

665


What is array length?

514


What is difference between hashset and hashmap in java?

472


How does remove work in java?

528


What is keyset in java?

670