Possible Duplicate:
String equality vs equality of location
This my first question, be patient with me, please
I have the following code:
String str1 = "hello";
String str2 = "hello";
System.out.println(str1 == str2);
And the result is true
Why?