C# Programming - Strings - Discussion

Discussion Forum : Strings - General Questions (Q.No. 15)
15.
Which of the following statements are correct about the String Class in C#.NET?
  1. Two strings can be concatenated by using an expression of the form s3 = s1 + s2;
  2. String is a primitive in C#.NET.
  3. A string built using StringBuilder Class is Mutable.
  4. A string built using String Class is Immutable.
  5. Two strings can be concatenated by using an expression of the form s3 = s1&s2;
1, 2, 5
2, 4
1, 3, 4
3, 5
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Subhajit said:   1 decade ago
I think the right answer is not there. 1, 2, 3, 4 all are right. String is primitive, immutable. String builder is mutable. We can add string by s1+s2.

Post your comments here:

Your comments will be displayed after verification.