Friday 16 December 2011

98.Which of the following statements are correct?

1.String is a value type.
2.String literals can contain any character literal including escape sequences.
3.The equality operators are defined to compare the values of string objects as well as references.
4.Attempting to access a character that is outside the bounds of the string results in an IndexOutOfRangeException.
5.The contents of a string object can be changed after the object is created.
A.1, 3
B.3, 5
C.2, 4
D.1, 2, 4
Answer: Option C