public class Str {
private
String strr;
public Str(String st)
{
this.strr=st;
}
static public void main(String sd[])
{
Str s1= new Str("HELLO");
Str s2= new Str("HELLO");
System.out.println(s1.equals(s2));
}
}
I got the output as false in above program, Why so ?, but it should be true ?
Plz clarify me .Thank you Friends