- The method first checks if s1==s2. If it is then it return true. Recall this only be true if the string objects are interned. Else though the value of the objects are same == will always return false for String object
- If s1== s2 returns false then length of the both the String is checked if they are same
- If same then comparison is done on each character of both objects sequentially.
- Returns true if all characters are same.