if strings are immutable in c#, how come I am doing this?

Viewed 1559

I read today, in c# strings are immutable, like once created they cant be changed, so how come below code works

string str="a";
str +="b";
str +="c";
str +="d";
str +="e";

console.write(str) //output: abcde

How come the value of variable changed??

8 Answers
Related