Microsoft
98-372 · Question #101
When you create an instance, where does the .NET Framework allocate memory for the instance?
The correct answer is A. On the heap. When you create an instance, the .NET Framework allocates memory on the heap for the instance. Reference types are stored on the heap, whereas value types are stored on the stack.
Understanding .NET Framework Concepts
Question
When you create an instance, where does the .NET Framework allocate memory for the instance?
Options
- AOn the heap
- BOn the stack
- COn the ROM
- DOn the hard disk
How the community answered
(30 responses)- A73% (22)
- B7% (2)
- C3% (1)
- D17% (5)
Explanation
When you create an instance, the .NET Framework allocates memory on the heap for the instance. Reference types are stored on the heap, whereas value types are stored on the stack.
Topics
#heap memory#stack memory#memory allocation#CLR runtime
Community Discussion
No community discussion yet for this question.