The big difference is that equals() will only work with another String, while contentEquals() would work on any CharacterSequence (like StringBuilder).
Should produce:
str1.equals(str2): true
str1.contentEquals(str2): true
str1.equals(str3): false
str1.contentEquals(str3): true