C# Programming - Strings - Discussion
Discussion Forum : Strings - General Questions (Q.No. 12)
12.
Which of the following statement is correct about a String in C#.NET?
Discussion:
4 comments Page 1 of 1.
Rajkumar said:
1 decade ago
String is refrence type so it is store in heep and it execution is slower then value type which is store in stack.
Vishu said:
1 decade ago
Why not [B]? we can modify string with the help of substring, copy.
Sami said:
1 decade ago
I think substring, copy, compare, equal etc are not used to modify the string. These methods are used to act on data and perform different task but they do not change the content of original string.
Manish said:
1 decade ago
Answer is correct it is D.
Mutable: Mutable means whose state can be changed after it is created.
Immutable: Immutable means whose state cannot be changed once it is created.
String objects are 'immutable' it means we cannot modify the characters contained in string also operation on string produce a modified version rather than modifying characters of string.
Mutable: Mutable means whose state can be changed after it is created.
Immutable: Immutable means whose state cannot be changed once it is created.
String objects are 'immutable' it means we cannot modify the characters contained in string also operation on string produce a modified version rather than modifying characters of string.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers