Two types of memories are present in .NET. They are :
Stack : Stack is a stored-value type that keeps track of each executing thread and its location. It is used for static memory allocation.
Heap : Heap is a stored reference type that keeps track of the more precise objects or data. It is used for dynamic memory allocation.