| == | Method equals() |
| It is used to check if two variables point at the same instance of a String object. | It is used to compare the values of the Strings. |
| It is used for object reference comparison in Java. | It is used for logical and business logic comparison. |
| It returns true if two reference are of same object. | It depends on overridden implementation. |
| It is used to compare both primitive and objects. | It is used to check equality of objects only. |