Java Strings contentEquals() method — It returns true only if this string is the same string of characters which is specified in the buffer string (StringBuffer).
Syntax
The syntax of the method is:
Options
Detailed information about the parameters:
sb - string of the buffer for comparison.
Return value
In Java, contentEquals () returns true only if the string is the same string as specified in the buffer string (StringBuffer), otherwise it returns false.
Related Searches to Java Strings contentEquals() method
java string is not equal override equals method in java equalsignorecase method in java equals method in the java object class equals method in Example Java method equals and hashcode in java equals () java equivalent implementation of the method in java