You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//if there are 2 objects holding the same references equals and == will give same result
// == operator compares references
String x="Java";
String y=new String("Java");
// System.out.println(x.equals(y)); //true
// System.out.println(x==y); //false
// System.out.println(str2.compareTo(str1));// compares strings in dictionary order returns difference between their ascii codes of first mismatced letters