Vidyalelo
C# Programming · Q79

Arrays and Strings in C Sharp

Programming · C# Programming · question 79

Q79

What will be the output of the following C# code? static void Main(string[] args) String obj = "hello"; String obj1 = "world"; String obj2 = obj; Console.WriteLine (obj.Equals(obj2) + " " + obj2.CompareTo(obj) ); Console.ReadLine();

A.
True True
B.
False False
C.
True 0
Answer
D.
False 1

Answer: Option C

Solution

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