Question: Explain the concept of garbage collection in programming languages.Answer: Garbage collection is the automatic process of reclaiming memory occupied by objects that are no longer in use, preventing memory leaks.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is the difference between a stack and a queue?
- What is the purpose of an index in a database?
- What is the purpose of the \'git\' version control system?