Sai,
I had posted this answer few days back but could not locate it.. hence giving it here again. Hope it will help you.
All classes extend Object class, directly or indirectly and therefore inherit Object's methods. The equals() method is one of these inherited method. Unless you override
equals() method in your class , you get default implementation of equals(). This default implementation assumes that an object is equal to itself. i.e It compares object references for equality, returning true if they have same
value or else would return false if the references have different values.
If you need to look at more self review questions on this topic, you may visit my homepages at
http://www.tipsmart.com/javacert/selfreview/objequiv.htm Sandeep Nachane