My code below
public class EqualsComMetod_Operator {
  public static void main(String[] args) {
    String s1=new String("Raja");
    String s2=new String("Raja");
    System.out.println("s1==s2::"+s1==s2);
    // Here the text s1==s2:: not printed on my console why??
  }
}
Output:
false
Am comparing the objects as reference/address and try to print like this:
s1==s2::false
but directly showing false. Why?
 
     
     
     
    