Stack vs Heap

Stack vs Heap

StackHeap
StoreMethod calls, primitive types, reference to objectsObjects
ManagementAutomaticManual or Automatic (Garbage Collector)