public class practice {
public static void main(String[] args) {
String str1 = new String("abcdef");
String str2 = new String("abcdef");
System.out.println(str1==str2);
}
}
can somebody explain why is it returning false even though they have the same string content .