Discuss advantages and disadvantages of string immutability
Answers
Answered by
0
Answer:
Advantages and disadvantages immutable objects
An immutable object remains in exactly one state, the state in which it was created. ...
Immutable classes are easier to design, implement, and use than mutable classes.
Immutable objects are good Map keys and Set elements, since these typically do not change once created.
Explanation:
please mark the brainliest and thanks
Answered by
1
Answer:
Advantages and disadvantages immutable objects
- An immutable object remains in exactly one state, the state in which it was created. ...
- Immutable classes are easier to design, implement, and use than mutable classes.
- Immutable objects are good Map keys and Set elements, since these typically do not change once created.
Similar questions