Value Types are stored on the heap ..? Is it true/False ?

Skill/Topic: Advanced
A) True
B) False

Showing Answers 1 - 18 of 18 Answers

Ramu_Ve

  • Jan 16th, 2006
 

This is strictly false. Only refernce value will be stored in Heap and the value type are stored in stack.

  Was this answer useful?  Yes

ngokul12

  • Feb 18th, 2006
 

Hello I have replied this correctly but the application is not treating is a correct answer. Value types are not stored in Heap. They are stored in Stack.

  Was this answer useful?  Yes

Anton

  • Nov 29th, 2006
 

1. If go and check this website http://msdn2.microsoft.com/en-us/library/ms229017.aspx this is what you going to read:Reference types are allocated on the heap, and memory management is handled by the garbage collector. Value types are allocated on the stack or inline and are deallocated when they go out of scope.2. Multiple inheritance is also not possible. Read this http://blogs.msdn.com/csharpfaq/archive/2004/03/07/85562.aspx or any other source.So don't confuse readers please.

  Was this answer useful?  Yes

mbroaddus

  • Oct 4th, 2007
 

Couple things about this test:

1. Yes this Value type question is indeed wrong.  Value Types are stored on the Stack.

2. Yes, while multiple inheritence is not possible in C# this is half true and tricky.  This really means that you can not inherit from 2 classes that implement behavior... however you can inherit from more then one interface.  So, multiple implementation inheritence is not possible while multiple interface inheritence is.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions