What is value type and refernce type in .net?



What is value type and refernce type in .net?..

Answer / Himanshi

In .NET, value types are simple data types such as integers, floating-point numbers, and structs that hold their own memory. They are stored on the stack and have a fixed size. Reference types, on the other hand, include objects, arrays, and classes, which store their reference on the stack while their instance is allocated on the heap. Examples of value types are int, bool, and DateTime; examples of reference types are String, List<T>, and MyClass.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

How do we access crystal reports in .net?

1 Answers  


Explain Different kinds of methods?

1 Answers   Wipro,


What tools can I use to develop .net applications?

1 Answers  


Explain about major components of the .NET framework.

1 Answers  


How viewstate is being formed and how it's stored on client in .net?

1 Answers  


Explain how to redirect tracing to a file?

1 Answers  


What is RPC? What is the use of it?

1 Answers   Accenture,


Please explain is the jit an interpreter?

1 Answers  


object is physical and class is logical..here class is not occupying any memory as our definition of class but i got a question then the class where it stores if it is not occupying any memory....

1 Answers   Infotech, Wipro,


What is MSIL, IL, CTS?

3 Answers  


you have a requirement from client, he has an XML file and you need to insert the data into 5-6 tables in database. explain me the procedure.

2 Answers   Deloitte,


How is .net able to support multiple languages?

1 Answers  


Categories