why equals() method when we have == operator?

Posted by GK on Stack Overflow See other posts from Stack Overflow or by GK
Published on 2010-05-05T11:34:53Z Indexed on 2010/05/05 11:38 UTC
Read the original article Hit count: 147

Filed under:

When i see the implementation of equals() method it does nothing but same as what == does. So my question is what was the need to have this as separate method when we have == operator which does the same work?

© Stack Overflow or respective owner

Related posts about java