← Back to CS FundamentalsPrimitive vs Reference Types / Stack vs Heap
CS Fundamentalsdata-structures
The Question
What is the difference between primitive and reference types? How do stack and heap relate?
What a Strong Answer Covers
- stack = local vars
- "heap = objects
- "Python: everything on heap
- "GC manages heap
Related Questions
Practice This Question
Get AI-graded feedback on your answer with follow-up probes on weak points.
Take the Free Assessment