Computer Science, asked by gurjarbh5465, 11 months ago

Why immutable objects cannot be modified at a place

Answers

Answered by Shayna008
0

Answer:

Immutable objects cannot be modified at a place because it allows us to centralize all our invariants and guarantee that objects are consistent for their entire lifetime. This stabilizes our system and removes the threat of an unforeseen error destabilizing an entire system.

Explanation:

immutable classes greatly reduce the effort needed to implement a stable and fault tolerant system. The property of immutables that prevents them from being changed is extremely beneficial when creating this kind of system. and this is because they adapt an inconsistent state.

Hey friend!

Here is your answer..

Hope this helps u:)

please mark it as the brainliest!

Answered by Anonymous
0

Tuples are immutable i.e the value cannot be changed. So, Option D is correct.

Similar questions