The operators (=,!=) compare the objects to see if they refer to the same object.
But the equals method compares the value of the object.
equals() method is defined in the object class, hence inhereted by all the classes.However, it doesn't perform an intelligent comparison for user defined classes unless the class overrides equals method.
It has be defined in a meaningful way for most Java core classes like String,Integer
Hope this helps u