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

Can we make the abstract methods static in java?

577


What does replaceall do in java?

471


Are static members inherited to sub classes?

628


What is polymorphism in java? What are the kinds of polymorphism?

560


What means public static?

554






From the two, which would be easier to write: synchronization code for ten threads or two threads?

603


Variable of the boolean type is automatically initialized as?

579


What are meta-annotations?

543


What do you understand by looping in java? Explain the different types of loops.

550


how do I create a runnable with inheritance? : Java thread

496


How can you generate random numbers in java?

575


What is sizeof in java?

543


Is singleton class immutable?

528


How destructors are defined in java?

614


What is anagram word?

509