Dart's memory management for objects uses the concept of ________ collection.

  • Cycle
  • Garbage
  • Garbage and Cycle
  • Reference
Dart's memory management for objects uses the concept of 'Reference' collection. The Dart garbage collector is responsible for reclaiming memory occupied by objects that are no longer reachable. The 'Reference' collection involves tracking references to objects and identifying those that are no longer accessible, allowing the garbage collector to release their memory. Understanding this process is crucial for writing efficient and memory-safe Dart code.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *