Hi,
What does the term immutable mean ? ... and Why String is Immutable Type in .Net ?.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 24, 2012, 8:00 PM EDT
In object-oriented and functional programming, an immutable object is an object whose state cannot be modified after it is created.
mutable object means object which can be modified after it is created.
Immutable objects are often useful because they are inherently thread-safe.
Please go through
http://stackoverflow.com/questions/2365272/why-net-string-is-immutable
hope this help.
SenthilkumarRank #387 · 6.5K reputationPosted Apr 24, 2012, 8:02 PM EDT
MuthuMari MRank #5,738 · 288 reputationPosted Apr 24, 2012, 9:18 PM EDT
The data value may not be changed.
Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.
thanks.
If this post is useful then mark it as "Accepted Answer"
MuthuMari MRank #5,738 · 288 reputationPosted Apr 24, 2012, 9:22 PM EDT
The data value may not be changed.
Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.
thanks.
If this post is useful then mark it as "Accepted Answer"