Blog

Output of following code:

class Program {

static void Main(string[] args) {
string str1 = “abc”;
StringBuilder builder = new StringBuilder();
builder.Append(“abc”);
String str2 = builder;

if (str1 == str2) {
Console.WriteLine(“Both Strings are == , “);
} else {
Console.WriteLine(“Both Strings are not == , “);
}

if (str1.Equals(str2)) {
Console.WriteLine(“Both Strings are equal “);
} else {
Console.WriteLine(“Both Strings are not equals “);
}
}

}