"==" and equals the difference between:
"==" is not only to determine the contents of the object, but also determine the address of the object, that is to say "==" object corresponds to the value judgment is whether the same memory
equals is only determined whether the same content within the object, so that the two strings are generally determined using a equals.