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, 1665👍, 0💬
Popular Posts:
How To Return the Second 5 Rows? - MySQL FAQs - SQL SELECT Statements with JOIN and Subqueries If yo...
What’ is the sequence in which ASP.NET events are processed ? Following is the sequence in which the...
How to reduce the final size of an executable file? Size of the final execuatable can be reduced usi...
How To Delete All Rows a Table? - MySQL FAQs - Understanding SQL INSERT, UPDATE and DELETE Statement...
How to set a HTML document's background color? document.bgcolor property can be set to any appropria...