Vidyalelo
C# Programming · Q119

Miscellaneous in C Sharp

Programming · C# Programming · question 119

Q119

What will be the output of the following C# code snippet? class Program static void Main(string[] args) String s1 = "Hello i love Csharp"; StringBuilder s2 = new StringBuilder(s1); Console.WriteLine(s1.Equals(s2)); Console.ReadLine();

A.
True
B.
False
Answer
C.
0
D.
Compile time error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board