What is the output of the program?
class GfG
{
public static void main(String args[])
{
String s1 = new String("Hello");
String s2 = new String("Hello");
if (s1 == s2)
System.out.println("Equal");
else
System.out.println("Not equal");
}
}


Posted on by