Learn Garbage Collection Day 21
The garbage collection (GC) manages the allocation and release of memory.
The garbage collector serves as an automatic memory manager.
When there isn’t enough memory to allocate an object, the GC must collect and dispose of garbage memory to make memory available for new allocations.
This process is known as garbage collection.
It also allocates objects on the managed heap efficient.
When objects are no longer used then it will reclaim those objects by clearing their memory, and keeps the memory available for future allocations.
Managed objects automatically get clean content to start with, so their constructors do not have to initialize every data field.
Garbage collector runs at the background process.
Garbage collector runs at the undetermestic.
Comments
Post a Comment