In this program the answer/output is false can you explain how is it so?
I have tried the code and i got output "false"
class eq
{
public static void main(String args[])
{
String s1 = “Hello”;
String s2 = new String(s1);
System.out.println(s1==s2);
}
}
i expect the output to be "true"