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
What is garbage collection? What is the process that is responsible for doing that in java?
What are static blocks and static initalizers in java ?
Difference difference paint() and paintcomponent()?
What are the rules for naming an array?
What is Java Shutdown Hook?
How can an object be unreferenced?
When we should use serialization?
What is difference between null and void?
What is jvm? How its run?
What is set string?
What is string data type?
what is difference betweem home interface and remote interface?
What are access specifiers in java ?
What are the advantages of exception handling?
What is the different types of functions?