Illustrate the use of Garbage Collection 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.