Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Top Articles Author
Fri, 01-Aug-2014 Authors
All Time Authors
Bharathi Cherukuri

Latest members | More ...

(Statistics delayed by 5 minutes)

Which of the following statements are true about the C#.NET code snippet given below?

String s1, s2;
s1 = "Hi";
s2 = "Hi";

1.String objects cannot be created without using new.
2.Only one object will get created.
3.s1 and s2 both will refer to the same object.
4.Two objects will get created, one pointed to by s1 and another pointed to by s2.
5.s1 and s2 are references to the same object.

 Posted by Murugavelmsc on 2/18/2013 | Category: C# Interview questions | Views: 2587 | Points: 40

Select from following answers:
  1. 1, 2, 4
  2. 2, 3, 5
  3. 3,4
  4. 2,5
  5. All Above

Show Correct Answer

Source: | Asked In: Many Interviews | Alert Moderator 

Found interesting? Add this to:

More Interview Questions by Murugavelmsc

    Comments or Responses

    Login to post response