Question: What is an advantage of an immutable object?
- Immutable objects use less memory than their mutable counterparts.
- Immutable objects do not require error handling.
- Immutable objects can be used in classes, mutable objects cannot.
- Immutable objects are threadsafe.
Answer: The correct answer of the above question is Option D:Immutable objects are threadsafe.