What are the different types of memory in .NET?

devquora
devquora

Posted On: Dec 21, 2022

 

There are two types of memory in .NET which are heap and stack memory. Heap memory is used for dynamic allocation of memory. When a program is created, heap memory space only stores them. Stack memory is more sequential and is used for static memory storage. Therefore it is easy to access this part of memory quickly. The reference to the codes stored by heap memory is stored in the stack and is used during execution.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    .NET Interview Questions

    What is .NET?

    .NET is a software development framework by Microsoft...

    .NET Interview Questions

    What are the purposes of using .NET?

    .NET is used for creating web applications, Windows mobile, and Store applications, Windows Desktop..

    .NET Interview Questions

    How is .NET able to support a lot of languages?

    .NET is equipped with Microsoft Intermediate Language (MISL) that has got codes compiled within itself...