C# Programming - Strings - Discussion

Discussion :: 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;

[A]. 1, 2, 5
[B]. 2, 4
[C]. 1, 3, 4
[D]. 3, 5

Answer: Option C

Explanation:

No answer description available for this question.

Subhajit said: (Apr 6, 2015)  
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:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.