Which memory management technique does Python primarily utilize?

  • Garbage Collection (GC)
  • Manual Memory Management (malloc/free)
  • Reference Counting
  • Stack Allocation
Python primarily utilizes Garbage Collection (GC) for memory management. It automatically deallocates memory occupied by objects that are no longer in use, making memory management more convenient and reducing the risk of memory leaks.
Add your answer
Loading...

Leave a comment

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