What is garbage collection in Java, and how can it be used ?
Answer Posted / tulsi
Garbage collection means deallocation of variables,which
are of no use(variables that wont be usefull in future).It
is a automatic process that occurs during the execution of
your program. In other lanuages this facility is not
provided, we have to do it mannually where as java provides
this process known as garbage collection.
Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Is ruby built on java?
What are adapter classes?
How do you implement polymorphism in our day to day life?
What is local class in java?
What are the restriction imposed on a static method or a static block of code?
What is the difference between a field variable and a local variable?
Is stringwriter thread safe?
Difference between Preemptive scheduling vs. Time slicing?
How many bytes is double?
What happens to a static var that is defined within a method of a class?
What is object data type?
What is the function of static in java?
What is a flag variable?
Can we change the value of static variable?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?