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

Answer Posted / sachin deshmukh

In java doesn't allow memory leakage,Garbage collector
automatically deallocates memory.It deallocates memory of
objects that no longer has any references i.e. references
count is zero.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me the Importent classes in net package?

1664


Is static a keyword in java?

623


what is the constructor and how many types of constructors are used in java?

618


Can we split string with in java?

635


What is the difference between import java.util.date and java .util?

679






What are the supported platforms by java programming language?

669


What is a private class in java?

600


Why should we use singleton pattern instead of static class?

571


What is null data type?

603


What are the five major types of reference sources?

631


What is qualitative variable?

602


Is it possible to override the main method?

610


What are the main concepts of oops in java?

813


What 4 doubled?

644


Can classes declared using the abstract keyword cab be instantiated?

663