Improves security.
Makes String objects thread-safe. "Makes String objects thread-safe" means multiple threads can read and use the same
Stringobject simultaneously without corrupting its data or causing errors.
Makes hashing predictable, useful for HashMap keys.