What is garbage collection in Java, and how can it be used ?
Answer Posted / veer
When an object has of no use in a program then it has to be
discarded to free the occupied space by it so that other
object can fill the space.That is what Garbaghe collection
is.
| Is This Answer Correct ? | 43 Yes | 13 No |
Post New Answer View All Answers
What is return null in java?
What is a qualifier in a sentence?
How to reverse a string in java?
What do you mean by default constructor in java?
Why are arrays useful in java?
What is string pool in java?
Can we have any code between try and finally blocks?
What is main in java?
Why volatile is used in java?
Can we declare a class as abstract without having any abstract method?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Can we sort array in java?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
what is object slice?