Why do we need garbage collection and how it is done in JAVA code example
Example: garbage collection in java
Garbage collection means destroying or de-allocating unused objects in memory.
Garbage collection means destroying or de-allocating unused objects in memory.