What is the difference between value and reference types?



What is the difference between value and reference types?..

Answer / Mayank Singh

"Value types (e.g., structs in C#) store their data directly within the variable, making them simple, lightweight objects that are passed by value. Reference types (e.g., classes in C#) store only a reference to the object's memory location, making them more complex and heavier than value types. They are passed by reference, allowing multiple variables to access the same data."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB.NET Interview Questions

How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently

1 Answers  


Explain namespace?

1 Answers  


What is the difference between custom control and user control?

1 Answers  


How do you call a stored procedure in Visual Basic?

1 Answers   CGI,


Explain public assembly?

1 Answers  


I'm unable to open a .hlp file using vb.net application.

1 Answers  


How to create Crystal Report in vb.net with coding

1 Answers   A3Logics, Ascent, TCS,


Compare c# and visual basic.net?

1 Answers  


write a VB.net program to swap two numbers

5 Answers   Digitec, Student,


when do we need a multiple document interface?

2 Answers  


Did vb6 support multi-threading ?

1 Answers  


Name some of the features of C# which are not present in VB.NET?

1 Answers  


Categories