using System;
public class Test
{
public static void Main()
{
string s1 = "koko";
string s2 = s1;
if(object.ReferenceEquals(s1, s2))
{
Console.WriteLine("Same refernce");
}
else
{
Console.WriteLine("different refernce");
}
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgICAgc3RyaW5nIHMxID0gImtva28iOwogICAgICAgICAgc3RyaW5nIHMyID0gczE7CgogICAgICAgICAgaWYob2JqZWN0LlJlZmVyZW5jZUVxdWFscyhzMSwgczIpKQogICAgICAgICAgewogICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJTYW1lIHJlZmVybmNlIik7CiAgICAgICAgICB9CiAgICAgICAgICBlbHNlCiAgICAgICAgICB7CiAgICAgICAgICAJICBDb25zb2xlLldyaXRlTGluZSgiZGlmZmVyZW50IHJlZmVybmNlIik7CiAgICAgICAgICB9Cgl9Cn0=