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
Tell me the Importent classes in net package?
Is static a keyword in java?
what is the constructor and how many types of constructors are used in java?
Can we split string with in java?
What is the difference between import java.util.date and java .util?
What are the supported platforms by java programming language?
What is a private class in java?
Why should we use singleton pattern instead of static class?
What is null data type?
What are the five major types of reference sources?
What is qualitative variable?
Is it possible to override the main method?
What are the main concepts of oops in java?
What 4 doubled?
Can classes declared using the abstract keyword cab be instantiated?