String str1 = "subash";
String str2 = "ecm";
String combStr = str1 + str2;
String str3 = "subashecm";
System.out.println("combStr.equals(str3)? " + combStr.equals(str3));
System.out.println("combStr == str3? " + (combStr == str3));
--------------------------------------------------------------------------------------------
String's “equals()” compares the contents of the two Strings (i.e. the same sequence of characters). “==” is a fundamental operator which verifies whether two references are the same( i.e. whether references refer to same object)