Discussion :: Strings - C#
-
Which of the following statements are true about the C#.NET code snippet given below?
String s1, s2; s1 = "Hi"; s2 = "Hi";
- String objects cannot be created without using new.
- Only one object will get created.
- s1 and s2 both will refer to the same object.
- Two objects will get created, one pointed to by s1 and another pointed to by s2.
- s1 and s2 are references to the same object.
Answer : Option B
Explanation :
No answer description available for this question.
Be The First To Comment