- A String object is immutable.
- StringBuilder – Mutable. With no guarantee of Synchronization
- StringBuffer – Thread safe Mutable Object
Immutable objects cannot be modified once they are created.
Mutable objects can be modified after their creation.
Posted in Interview Q & A, Java Q & A on August 4, 2006 | 2 Comments »
Immutable objects cannot be modified once they are created.
Mutable objects can be modified after their creation.