String
Immutability: String objects are immutable, meaning that once a String object is created, it cannot be changed. Any modification to a String creates a new String object.
Thread-Safety: String is thread-safe because it is immutable. No matter how many threads access a String object, it remains unchanged.
Performance: Because of immutability, every time you modify a String, a new object is created, which can lead to performance overhead if there are many modifications.