Strings
Java strings: immutability, why String methods return new strings, the string pool, equals against ==, and building text with StringBuilder.
String, Java's type for text. Strings are the first type most people use and the last one they understand, and one fact explains almost everything surprising about them: a String can never be changed after it is made. It covers why string methods return new strings, two examples of keeping or losing that result, the string pool, why == misleads, what += does in a loop, and StringBuilder. It leaves out character encodings.
Contents
9 cardsnot started