Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What are Value types and Reference types
What are Value types and Reference types ?
✍: Guest
Value types directly contain their data which are either allocated on the stack or allocated in-line in
a structure.
Reference types store a reference to the value's memory address, and are allocated on the heap.
Reference types can be self-describing types, pointer types, or interface types.
Variables that are value types each have their own copy of the data, and therefore operations on
one variable do not affect other variables. Variables that are reference types can refer to the same
object; therefore, operations on one variable can affect the same object referred to by another
variable. All types derive from the System.Object base type.
2007-10-22, 5276👍, 0💬
Popular Posts:
How does one iterate through items and records in a specified block? One can use NEXT_FIELD to itera...
How To Run a JUnit Test Class? A JUnit test class usually contains a number of test methods. You can...
When should the method invokeLater() be used? This method is used to ensure that Swing components ar...
What will happen in these three cases? if (a=0) { //somecode } if (a==0) { //do something } if (a===...
What is synchronization and why is it important? With respect to multithreading, synchronization is ...