When we create any object there are two parts to the object one is the content and the other is reference to that content.
==
compares both content and reference;
equals()
compares only content
http://www.codeproject.com/Articles/584128/What-is-the-difference-between-equalsequals-and-Eq