The String class represents character strings.
String buffers support mutable strings.
The class String includes methods for examining individual characters of the sequence, for comparing strings, for searching strings, for extracting substrings, and for creating a copy of a string with all characters translated to uppercase or to lowercase. String concatenation is implemented through the StringBuffer class and its append method. String conversions are implemented through the method toString , defined by Object and inherited by all classes in Java. Compares two strings lexicographically. Compares this string to the specified object.