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

If you are given the name of the function at run time how will you invoke the function?

781


How will you get the platform dependent values like line separator, path separator, etc., ?

663


What is type conversion in java?

664


What are the 3 types of loops in java?

619


whatis Home interface and Remoteinterface? with example?

1650






What is the difference between Java1.4 and Java1.5

1926


Can a main method be overloaded?

660


Can two objects have same hashcode?

655


Can you start a thread twice in Java?

743


Explain about collection interface in java?

639


What is unicode with example?

706


What is the difference between length and length () in java?

614


What is static class

708


What is visibility mode?

625


Can private method static?

560