It returns true if the invoking string and the string passed in the equals function contains the same characters otherwise it returns false. Both strings must be in same case( Case-sensitive).