String ClassTheStringclass is special. It is the only class that hasIt also has methods, such as
- constants (strings in double-quotes)
- construction/initialization to constants
- a built-in operator (
+)- For example,
String msg = "Hello, " + "world!";
length()equals(anotherString)contains(aSubString)