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:
Is string a value type or a reference type?
Is string a value type or a reference type?
✍: Guest
Answer1:
String is Reference Type.
Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short,strut, uint, ulong, ushort
Value types are stored in the Stack
Reference type - class, delegate, interface, object, string
Reference types are stored in the Heap
Answer2:
Yes String is reference type. C# gives two types of variable reference and value type. string and object are reference type.
2014-02-27, 1667👍, 0💬
Popular Posts:
How To Run Stored Procedures in Debug Mode? - Oracle DBA FAQ - Introduction to Oracle SQL Developer ...
How can you enable automatic paging in DataGrid ? Following are the points to be done in order to en...
How will you freeze the requirement in this case? What will be your requirement satisfaction criteri...
How To Join a List of Keys with a List of Values into an Array? - PHP Script Tips - PHP Built-in Fun...
Who Developed HTML? HTML was originally developed by Tim Berners-Lee while at CERN, and popularized ...