why str1==str2 is returning false while str2 == str3 returns true in below code? As per my understanding, str1==str2 should also return true.
public static void main(String[] args) throws Exception {
String str = "me";
String str1 = str + "test";
String str2 = "metest";
String str3 = "me" + "test";
System.out.println(str1==str2); // O/P false
System.out.println(str2==str3); // O/P true
}