Answer Posted / pushparaj pentakota(anakapalli
stack can store value type and reference type also but at compile time only but heap can store objects at run-time.stack can't store objects bcz stack at run-time can't increse their memory size it's fixed length.objects need extra memory sometimes so objects allocate memory in heap context.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is and as in c#?
What is ilasm.exe used for?
What is assembly manifest?
What is the difference between list and dictionary in c#?
Is it possible to have a static indexer in c#? Allowed in c#.
Can properties be static in c#?
Why ref is used in c#?
Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?
Can an array be null c#?
What is the .NET collection class that allows an element to be accessed using a unique key?
What is difference between new and override in c#?
If you donot specify an access modifier for a method, what is the default access modifier?
What is check/uncheck?
Why singleton class is sealed?
When do you generally use a class over a struct?