Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#value vs reference typesSingle-choice MCQ

What is the result of comparing two separate string instances with == in C#?

string a = "hello"; string b = new string("hello".ToCharArray()); Console.WriteLine(a == b);