Is string a value type or a reference type?
Answers were Sorted based on User's Feedback
Answer / rajneesh hajela
string is immutable
but stringbuildler are mutable...
this play many role
StringBuilder y = new StringBuilder();
y.Append("hello");
StringBuilder x = new StringBuilder();
x.Append("hello");
if (y == x)
{
}
// Stirng is immutable .In some ways it to
be value types .These are known as immutable .
//===================
string str1 = "hello";
string str2 = "hello";
if (str1 == str2)
{
}
//===============
string y1 ="";
y1="hello";
Program p = new Program();
p.foo(ref y1);
Console.WriteLine(y1);
}
void foo(ref string sb)
{
sb="Rajneesh Hajela:";
}
Rajneesh Hajela
Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is the difference between web application and enterprise application?
Explain can the validation be done in the server side? Or this can be done only in the client side?
What is SOAP? How you will do windows and forms authentication?
If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?
In code behind class, name the type of code found. Is it the server side code or client side code?
Explain boxing and unboxing in .net.
How does the generational garbage collector in the .net clr manage object lifetime? What is non-deterministic finalization?
Give An example of a ctype and directcast.
What are the fundamental objects in ADO.NET?
Explain different types of cookies in .NET?
How would ASP and ASP.NET apps run at the same time on the same server?
Difference between Debugging and tracing in .net