Oracle Interview Question

How does memory management work in Python?

Interview Answer

Anonymous

Feb 27, 2025

Python uses automatic memory management with reference counting and garbage collection (GC). The GC removes circular references using the generational garbage collector.