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 substring 1 in java?

589


How to sort double array in java?

585


How to disable caching on back button of the browser?

525


What is the method to declare member of a class static?

534


What is the difference between the paint() and repaint() methods in java programming?

621






What is the multi-catch block in java?

528


Why javac is not recognized?

517


Difference between serialization and deserialization in java?

650


What is the super void?

456


Is null a keyword in java?

553


what is optional in java 8?

550


What 5 doubled?

508


Which types of exceptions are caught at compile time?

560


How do I stop concurrentmodificationexception?

506


What is a default constraint?

611