Answers

Question and Answer:

  Home  Senior .Net Developer

⟩ Do you know the difference between the Stack and the Heap?

The short answer would be: in the Stack are stored value types (types inherited from System.ValueType), and in the Heap are stored reference types (types inherited from System.Object).

We can say the Stack is responsible for keeping track of what is actually executing and where each executing thread is (each thread has its own Stack). The Heap, on the other hand, is responsible for keeping track of the data, or more precise objects.

 155 views

More Questions for you: