Vidyalelo
C# Programming · Q68

Arrays and Strings in C Sharp

Programming · C# Programming · question 68

Q68

What will be the output of the following C# code? class Program static void Main(string[] args) String s1 = "I love You"; String s2 = s1; Console.WriteLine((s1 == s2) + " " + s1.Equals(s2)); Console.ReadLine();

A.
true true
Answer
B.
false false
C.
true false
D.
false true

Answer: Option A

Solution

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