What is garbage collection in Java, and how can it be used ?
Answer Posted / sandeep chaudhary
garbage collection is just a thread that is used for
deallocation of object.object in java are allocated in
heap area(memory ) ,particular object is not used for long
period then automatically garbage coolection calls this
object for destroyed.........
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Can an object be null?
what is the purpose of "virtual"?
What is the function of log?
What is the escape character in java?
What is the use of static class?
Why does java have different data types for integers and floating-point values?
What does method mean?
What is the purpose of void class?
Which is better stringbuffer or stringbuilder?
What is time complexity java?
What is %d in printf?
What is percentage in java?
How are variables stored in memory?
If a variable is declared as private, where may the variable be accessed?
Explain about field hiding in java?