What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?



What are the difference bbetween value type & reference types ? Example from .net. Integer &..

Answer / Aman Kumar

In .NET, value types (such as integer) are stored on the stack and have a fixed size, while reference types (such as struct) are stored on the heap and hold a reference to the actual object. Value types are copied by value when assigned, while reference types are copied by reference.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

State some of the different languages supported by .net?

1 Answers  


What is an EXE?

1 Answers  


hai, about trading domain and need simple project on trading system. please help me...

1 Answers  


which methos do you invoke on the dataadapter control to load your generated dataset with data?

1 Answers  


Difference between Panel and GroupBox classes?

3 Answers  


Please explain what is the difference between constants and read-only variables?

1 Answers  


Explain what is reflection in microsoft .net context?

1 Answers  


How can you automatically generate interface for the remotable object in .NET with Microsoft tools?

1 Answers  


Tell us what do the following acronyms in .net stand for: il, cil, msil, cli and jit?

1 Answers  


Explain different types of cookies in .NET?

1 Answers  


Explaing your project.

1 Answers   Deloitte,


What is .net3.5?

1 Answers  


Categories