Possible Duplicate:
Difference Between Equals and ==
String comparison and String interning in Java
Pretty self-explanatory question this time.
EDIT: I understand == is not equals. What I did not understand is why both a in "a" == "a" were assigned or treated as if they were same object instance (they are).
EDIT DID SOMEBODY READ THE QUESTION OR JUST LIKE PRESSING CLOSE BUTTON? IT HAS NOTHING TO DO WITH ANY OF THESE ABOVE. TELL ME WHERE DO I MENTION EQUALS METHOD.....