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

Answer Posted / ravi

when there are no refrences to an object,means that it is
not in use anymore.so the JVM marks it for garbage
collection ,which is basically a process of taking back the
resources from the object which was given to it earlier.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between comparator and comparable in java?

614


What about interthread communication and how it takes place in java?

541


What are mutable classes?

521


What do you mean by exception handling in Java?

661


What is collections framework?

571






Mention some interfaces implemented by linked list in java.

536


What is the this keyword?

554


What is data movement?

661


why not override thread to make a runnable? : Java thread

553


How many types of assembly languages are there?

523


What is array list in java?

587


Explain polymorphism citing an example.

590


What is exception hierarchy in java?

585


What is meant by data hiding/encapsulation?

570


What is __ init __ functions?

543