What is the output of the below given program?
public class Test
public static void Main()
string s = "skillgun";
string ss = "skillgun";
bool b = object.ReferenceEquals(s, ss);
While using Equals and ReferenceEquals methods on string both the methods will check for the data equality but not for address equality, though string is a reference type.
Back To Top