[Solved] Comparing java Strings with == [duplicate]


there is no custom operator overloading in java. [so you cannot overload it to call equals()]

the equals() ensures you check if 2 Objects are identical,while == checks if this is the exact same object. [so no, using == does not invoke equals()].

2

solved Comparing java Strings with == [duplicate]