String
String is immutable so it can be safely shared and cached in the String Pool without defensive copying, safely used as a HashMap key (its hashcode can be cached), safely shared across threads without synchronization, and protected from tampering when used in security-sensitive contexts like class loading and network connections.
Intermediate5 min

