The equals method can be considered to perform a deep comparison of the value of an object, whereas the == operator performs a shallow comparison. The quals() method compares the characters inside a string object. == operator compares two object references to check whether they refer to the same instances or not.
== is applied on Referance variables.This will return true if two reference variables points to same Objects otherwise return false
equals method is applied on Objects which referenced by reference variables. it is used when two objects are there.