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
Explain importance of throws keyword in java?
What do you understand by synchronization?
Can constructor be static or final?
What is literal example?
Is java ee a framework?
What do you mean by stack?
What are abstract classes and anonymous classes?
Can a static class implement an interface?
If two threads have same priority which thread will be executed first ?
What does s mean in regex?
Why to use nested classes in java?
What is double parsedouble in java?
Can we call virtual funciton in a constructor ?
Explain restrictions for using anonymous inner classes?
Why object class is super class for every class in java?